<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perlintern - autogenerated documentation of purely internal Perl functions - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perlintern">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlintern.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perlintern">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perlintern">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perlintern">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perlintern">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perlintern">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perlintern">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perlintern">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perlintern">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perlintern">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perlintern">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perlintern">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perlintern">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perlintern">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perlintern">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perlintern">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perlintern">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perlintern">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perlintern">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perlintern">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perlintern">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perlintern">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perlintern">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perlintern">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perlintern">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perlintern">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perlintern">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perlintern">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perlintern">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perlintern">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perlintern">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perlintern">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perlintern">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perlintern">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perlintern">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perlintern">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perlintern">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perlintern">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perlintern">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perlintern">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perlintern">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perlintern">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perlintern">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perlintern">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perlintern">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perlintern">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perlintern">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perlintern">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perlintern">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perlintern">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perlintern">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perlintern">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perlintern">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perlintern">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perlintern">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perlintern">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perlintern">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perlintern">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perlintern">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perlintern">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perlintern">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perlintern">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perlintern">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perlintern">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perlintern">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perlintern">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perlintern">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perlintern">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perlintern">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perlintern">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perlintern">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perlintern">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perlintern">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perlintern">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perlintern">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perlintern">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perlintern">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perlintern">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perlintern">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perlintern">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perlintern">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlintern.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perlintern">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perlintern">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perlintern">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perlintern">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perlintern">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perlintern">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perlintern">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perlintern">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perlintern">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perlintern">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perlintern">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perlintern">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perlintern">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perlintern">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perlintern">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perlintern">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perlintern">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perlintern">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perlintern">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perlintern">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perlintern">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perlintern">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perlintern">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perlintern">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perlintern">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perlintern">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perlintern">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perlintern">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perlintern">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perlintern">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perlintern">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perlintern">5.35.1</a>
          <a class="dropdown-item active" href="perlintern.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlintern.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perlintern.html">perlintern</a>
          <div id="more">
            (<a href="perlintern.txt">source</a>,
            <a href="https://metacpan.org/pod/perlintern">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perlintern.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#DESCRIPTION">DESCRIPTION  </a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#AV-Handling">AV Handling</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Callback-Functions">Callback Functions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Casting">Casting</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Character-case-changing">Character case changing</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Character-classification">Character classification</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Compiler-and-Preprocessor-information">Compiler and Preprocessor information</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Compiler-directives">Compiler directives</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Compile-time-scope-hooks">Compile-time scope hooks</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Concurrency">Concurrency</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#COP-Hint-Hashes">COP Hint Hashes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Custom-Operators">Custom Operators</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#CV-Handling">CV Handling</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Debugging">Debugging</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Display-functions">Display functions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Embedding-and-Interpreter-Cloning">Embedding and Interpreter Cloning</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Errno">Errno</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Exception-Handling-(simple)-Macros">Exception Handling (simple) Macros</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Filesystem-configuration-values">Filesystem configuration values</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Floating-point-configuration-values">Floating point configuration values</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Formats">Formats</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#General-Configuration">General Configuration</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Global-Variables">Global Variables</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#GV-Handling">GV Handling</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Hook-manipulation">Hook manipulation</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#HV-Handling">HV Handling</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Input/Output">Input/Output</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Integer-configuration-values">Integer configuration values</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Lexer-interface">Lexer interface</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Locales">Locales</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Magic">Magic</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Memory-Management">Memory Management</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#MRO">MRO</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Multicall-Functions">Multicall Functions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Numeric-Functions">Numeric Functions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Optree-construction">Optree construction</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Optree-Manipulation-Functions">Optree Manipulation Functions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Pack-and-Unpack">Pack and Unpack</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Pad-Data-Structures">Pad Data Structures</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Password-and-Group-access">Password and Group access</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Paths-to-system-commands">Paths to system commands</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Prototype-information">Prototype information</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#REGEXP-Functions">REGEXP Functions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Signals">Signals</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Site-configuration">Site configuration</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Sockets-configuration-values">Sockets configuration values</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Source-Filters">Source Filters</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Stack-Manipulation-Macros">Stack Manipulation Macros</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#String-Handling">String Handling</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#SV-Flags">SV Flags</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#SV-Handling">SV Handling</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Time">Time</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Typedef-names">Typedef names</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Unicode-Support">Unicode Support</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Utility-Functions">Utility Functions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Versioning">Versioning</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Warning-and-Dieing">Warning and Dieing</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#XS">XS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#Undocumented-elements">Undocumented elements</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#AUTHORS">AUTHORS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlintern.html#SEE-ALSO">SEE ALSO</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perlintern.html#NAME">#</a>NAME</h1>

<p>perlintern - autogenerated documentation of purely <b>internal</b> Perl functions</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perlintern.html#DESCRIPTION">#</a>DESCRIPTION  </h1>

<p>This file is the autogenerated documentation of functions in the Perl interpreter that are documented using Perl&#39;s internal documentation format but are not marked as part of the Perl API. In other words, <b>they are not for use in extensions</b>!</p>

<p>It has the same sections as <a href="perlapi.html">perlapi</a>, though some may be empty.</p>

<h1 id="AV-Handling"><a class="permalink" href="perlintern.html#AV-Handling">#</a><a id="AV"></a>AV Handling</h1>

<dl>

<dt id="AvFILLp"><a class="permalink" href="perlintern.html#AvFILLp">#</a><code>AvFILLp</code> </dt>
<dd>

<p>If the array <code>av</code> is empty, this returns -1; otherwise it returns the maximum value of the indices of all the array elements which are currently defined in <code>av</code>. It does not handle magic, hence the <code>p</code> private indication in its name.</p>

<ul>

<pre><code class="plaintext">SSize_t  AvFILLp(AV* av)</code></pre>

</ul>

</dd>
</dl>

<h1 id="Callback-Functions"><a class="permalink" href="perlintern.html#Callback-Functions">#</a><a id="Callback"></a>Callback Functions</h1>

<p>There are only public API items currently in Callback Functions</p>

<h1 id="Casting"><a class="permalink" href="perlintern.html#Casting">#</a>Casting</h1>

<p>There are only public API items currently in Casting</p>

<h1 id="Character-case-changing"><a class="permalink" href="perlintern.html#Character-case-changing">#</a><a id="Character"></a>Character case changing</h1>

<p>There are only public API items currently in Character case changing</p>

<h1 id="Character-classification"><a class="permalink" href="perlintern.html#Character-classification">#</a><a id="Character1"></a>Character classification</h1>

<p>There are only public API items currently in Character classification</p>

<h1 id="Compiler-and-Preprocessor-information"><a class="permalink" href="perlintern.html#Compiler-and-Preprocessor-information">#</a><a id="Compiler"></a>Compiler and Preprocessor information</h1>

<p>There are only public API items currently in Compiler and Preprocessor information</p>

<h1 id="Compiler-directives"><a class="permalink" href="perlintern.html#Compiler-directives">#</a><a id="Compiler1"></a>Compiler directives</h1>

<p>There are only public API items currently in Compiler directives</p>

<h1 id="Compile-time-scope-hooks"><a class="permalink" href="perlintern.html#Compile-time-scope-hooks">#</a><a id="Compile"></a>Compile-time scope hooks</h1>

<dl>

<dt id="BhkENTRY"><a class="permalink" href="perlintern.html#BhkENTRY">#</a><code>BhkENTRY</code> </dt>
<dd>

<p>NOTE: <code>BhkENTRY</code> is <b>experimental</b> and may change or be removed without notice.</p>

<p>Return an entry from the BHK structure. <code>which</code> is a preprocessor token indicating which entry to return. If the appropriate flag is not set this will return <code>NULL</code>. The type of the return value depends on which entry you ask for.</p>

<ul>

<pre><code class="plaintext">void *  BhkENTRY(BHK *hk, which)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="BhkFLAGS"><a class="permalink" href="perlintern.html#BhkFLAGS">#</a><code>BhkFLAGS</code> </dt>
<dd>

<p>NOTE: <code>BhkFLAGS</code> is <b>experimental</b> and may change or be removed without notice.</p>

<p>Return the BHK&#39;s flags.</p>

<ul>

<pre><code class="plaintext">U32  BhkFLAGS(BHK *hk)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="CALL_BLOCK_HOOKS"><a class="permalink" href="perlintern.html#CALL_BLOCK_HOOKS">#</a><code>CALL_BLOCK_HOOKS</code> </dt>
<dd>

<p>NOTE: <code>CALL_BLOCK_HOOKS</code> is <b>experimental</b> and may change or be removed without notice.</p>

<p>Call all the registered block hooks for type <code>which</code>. <code>which</code> is a preprocessing token; the type of <code>arg</code> depends on <code>which</code>.</p>

<ul>

<pre><code class="plaintext">void  CALL_BLOCK_HOOKS(which, arg)</code></pre>

</ul>

</dd>
</dl>

<h1 id="Concurrency"><a class="permalink" href="perlintern.html#Concurrency">#</a>Concurrency</h1>

<p>There are only public API items currently in Concurrency</p>

<h1 id="COP-Hint-Hashes"><a class="permalink" href="perlintern.html#COP-Hint-Hashes">#</a><a id="COP"></a>COP Hint Hashes</h1>

<p>There are only public API items currently in COP Hint Hashes</p>

<h1 id="Custom-Operators"><a class="permalink" href="perlintern.html#Custom-Operators">#</a><a id="Custom"></a>Custom Operators</h1>

<dl>

<dt id="core_prototype"><a class="permalink" href="perlintern.html#core_prototype">#</a><code>core_prototype</code> </dt>
<dd>

<p>This function assigns the prototype of the named core function to <code>sv</code>, or to a new mortal SV if <code>sv</code> is <code>NULL</code>. It returns the modified <code>sv</code>, or <code>NULL</code> if the core function has no prototype. <code>code</code> is a code as returned by <code>keyword()</code>. It must not be equal to 0.</p>

<ul>

<pre><code class="plaintext">SV *  core_prototype(SV *sv, const char *name, const int code,
                     int * const opnum)</code></pre>

</ul>

</dd>
</dl>

<h1 id="CV-Handling"><a class="permalink" href="perlintern.html#CV-Handling">#</a><a id="CV"></a>CV Handling</h1>

<dl>

<dt id="CvWEAKOUTSIDE"><a class="permalink" href="perlintern.html#CvWEAKOUTSIDE">#</a><code>CvWEAKOUTSIDE</code> </dt>
<dd>

<p>Each CV has a pointer, <code>CvOUTSIDE()</code>, to its lexically enclosing CV (if any). Because pointers to anonymous sub prototypes are stored in <code>&amp;</code> pad slots, it is a possible to get a circular reference, with the parent pointing to the child and vice-versa. To avoid the ensuing memory leak, we do not increment the reference count of the CV pointed to by <code>CvOUTSIDE</code> in the <i>one specific instance</i> that the parent has a <code>&amp;</code> pad slot pointing back to us. In this case, we set the <code>CvWEAKOUTSIDE</code> flag in the child. This allows us to determine under what circumstances we should decrement the refcount of the parent when freeing the child.</p>

<p>There is a further complication with non-closure anonymous subs (i.e. those that do not refer to any lexicals outside that sub). In this case, the anonymous prototype is shared rather than being cloned. This has the consequence that the parent may be freed while there are still active children, <i>e.g.</i>,</p>

<pre><code>BEGIN { $a = sub { eval &#39;$x&#39; } }</code></pre>

<p>In this case, the BEGIN is freed immediately after execution since there are no active references to it: the anon sub prototype has <code>CvWEAKOUTSIDE</code> set since it&#39;s not a closure, and $a points to the same CV, so it doesn&#39;t contribute to BEGIN&#39;s refcount either. When $a is executed, the <code>eval &#39;$x&#39;</code> causes the chain of <code>CvOUTSIDE</code>s to be followed, and the freed BEGIN is accessed.</p>

<p>To avoid this, whenever a CV and its associated pad is freed, any <code>&amp;</code> entries in the pad are explicitly removed from the pad, and if the refcount of the pointed-to anon sub is still positive, then that child&#39;s <code>CvOUTSIDE</code> is set to point to its grandparent. This will only occur in the single specific case of a non-closure anon prototype having one or more active references (such as <code>$a</code> above).</p>

<p>One other thing to consider is that a CV may be merely undefined rather than freed, eg <code>undef &amp;foo</code>. In this case, its refcount may not have reached zero, but we still delete its pad and its <code>CvROOT</code> etc. Since various children may still have their <code>CvOUTSIDE</code> pointing at this undefined CV, we keep its own <code>CvOUTSIDE</code> for the time being, so that the chain of lexical scopes is unbroken. For example, the following should print 123:</p>

<pre><code>my $x = 123;
sub tmp { sub { eval &#39;$x&#39; } }
my $a = tmp();
undef &amp;tmp;
print  $a-&gt;();</code></pre>

<ul>

<pre><code class="plaintext">bool  CvWEAKOUTSIDE(CV *cv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="docatch"><a class="permalink" href="perlintern.html#docatch">#</a><code>docatch</code> </dt>
<dd>

<p>Check for the cases 0 or 3 of cur_env.je_ret, only used inside an eval context.</p>

<p>0 is used as continue inside eval,</p>

<p>3 is used for a die caught by an inner eval - continue inner loop</p>

<p>See <i>cop.h</i>: je_mustcatch, when set at any runlevel to TRUE, means eval ops must establish a local jmpenv to handle exception traps.</p>

<ul>

<pre><code class="plaintext">OP*  docatch(Perl_ppaddr_t firstpp)</code></pre>

</ul>

</dd>
</dl>

<h1 id="Debugging"><a class="permalink" href="perlintern.html#Debugging">#</a>Debugging</h1>

<dl>

<dt id="free_c_backtrace"><a class="permalink" href="perlintern.html#free_c_backtrace">#</a><code>free_c_backtrace</code> </dt>
<dd>

<p>Deallocates a backtrace received from get_c_backtrace.</p>

<ul>

<pre><code class="plaintext">void  free_c_backtrace(Perl_c_backtrace* bt)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="get_c_backtrace"><a class="permalink" href="perlintern.html#get_c_backtrace">#</a><code>get_c_backtrace</code> </dt>
<dd>

<p>Collects the backtrace (aka &quot;stacktrace&quot;) into a single linear malloced buffer, which the caller <b>must</b> <code>Perl_free_c_backtrace()</code>.</p>

<p>Scans the frames back by <span style="white-space: nowrap;"><code>depth + skip</code></span>, then drops the <code>skip</code> innermost, returning at most <code>depth</code> frames.</p>

<ul>

<pre><code class="plaintext">Perl_c_backtrace*  get_c_backtrace(int max_depth, int skip)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PL_DBsingle"><a class="permalink" href="perlintern.html#PL_DBsingle">#</a><code>PL_DBsingle</code> </dt>
<dd>

<p>When Perl is run in debugging mode, with the <b>-d</b> switch, this SV is a boolean which indicates whether subs are being single-stepped. Single-stepping is automatically turned on after every step. This is the C variable which corresponds to Perl&#39;s $DB::single variable. See <code><a href="perlintern.html#PL_DBsub">&quot;PL_DBsub&quot;</a></code>.</p>

<p>On threaded perls, each thread has an independent copy of this variable; each initialized at creation time with the current value of the creating thread&#39;s copy.</p>

<ul>

<pre><code class="plaintext">SV *  PL_DBsingle</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PL_DBsub"><a class="permalink" href="perlintern.html#PL_DBsub">#</a><code>PL_DBsub</code> </dt>
<dd>

<p>When Perl is run in debugging mode, with the <b>-d</b> switch, this GV contains the SV which holds the name of the sub being debugged. This is the C variable which corresponds to Perl&#39;s $DB::sub variable. See <code><a href="perlintern.html#PL_DBsingle">&quot;PL_DBsingle&quot;</a></code>.</p>

<p>On threaded perls, each thread has an independent copy of this variable; each initialized at creation time with the current value of the creating thread&#39;s copy.</p>

<ul>

<pre><code class="plaintext">GV *  PL_DBsub</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PL_DBtrace"><a class="permalink" href="perlintern.html#PL_DBtrace">#</a><code>PL_DBtrace</code> </dt>
<dd>

<p>Trace variable used when Perl is run in debugging mode, with the <b>-d</b> switch. This is the C variable which corresponds to Perl&#39;s $DB::trace variable. See <code><a href="perlintern.html#PL_DBsingle">&quot;PL_DBsingle&quot;</a></code>.</p>

<p>On threaded perls, each thread has an independent copy of this variable; each initialized at creation time with the current value of the creating thread&#39;s copy.</p>

<ul>

<pre><code class="plaintext">SV *  PL_DBtrace</code></pre>

</ul>

</dd>
</dl>

<h1 id="Display-functions"><a class="permalink" href="perlintern.html#Display-functions">#</a><a id="Display"></a>Display functions</h1>

<p>There are only public API items currently in Display functions</p>

<h1 id="Embedding-and-Interpreter-Cloning"><a class="permalink" href="perlintern.html#Embedding-and-Interpreter-Cloning">#</a><a id="Embedding"></a>Embedding and Interpreter Cloning</h1>

<dl>

<dt id="cv_dump"><a class="permalink" href="perlintern.html#cv_dump">#</a><code>cv_dump</code> </dt>
<dd>

<p>dump the contents of a CV</p>

<ul>

<pre><code class="plaintext">void  cv_dump(const CV *cv, const char *title)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="cv_forget_slab"><a class="permalink" href="perlintern.html#cv_forget_slab">#</a><code>cv_forget_slab</code> </dt>
<dd>

<p>When a CV has a reference count on its slab (<code>CvSLABBED</code>), it is responsible for making sure it is freed. (Hence, no two CVs should ever have a reference count on the same slab.) The CV only needs to reference the slab during compilation. Once it is compiled and <code>CvROOT</code> attached, it has finished its job, so it can forget the slab.</p>

<ul>

<pre><code class="plaintext">void  cv_forget_slab(CV *cv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="do_dump_pad"><a class="permalink" href="perlintern.html#do_dump_pad">#</a><code>do_dump_pad</code> </dt>
<dd>

<p>Dump the contents of a padlist</p>

<ul>

<pre><code class="plaintext">void  do_dump_pad(I32 level, PerlIO *file, PADLIST *padlist,
                  int full)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="pad_alloc_name"><a class="permalink" href="perlintern.html#pad_alloc_name">#</a><code>pad_alloc_name</code> </dt>
<dd>

<p>Allocates a place in the currently-compiling pad (via <a href="perlapi.html#pad_alloc">&quot;pad_alloc&quot; in perlapi</a>) and then stores a name for that entry. <code>name</code> is adopted and becomes the name entry; it must already contain the name string. <code>typestash</code> and <code>ourstash</code> and the <code>padadd_STATE</code> flag get added to <code>name</code>. None of the other processing of <a href="perlapi.html#pad_add_name_pvn">&quot;pad_add_name_pvn&quot; in perlapi</a> is done. Returns the offset of the allocated pad slot.</p>

<ul>

<pre><code class="plaintext">PADOFFSET  pad_alloc_name(PADNAME *name, U32 flags, HV *typestash,
                          HV *ourstash)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="pad_block_start"><a class="permalink" href="perlintern.html#pad_block_start">#</a><code>pad_block_start</code> </dt>
<dd>

<p>Update the pad compilation state variables on entry to a new block.</p>

<ul>

<pre><code class="plaintext">void  pad_block_start(int full)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="pad_check_dup"><a class="permalink" href="perlintern.html#pad_check_dup">#</a><code>pad_check_dup</code> </dt>
<dd>

<p>Check for duplicate declarations: report any of:</p>

<pre><code>* a &#39;my&#39; in the current scope with the same name;
* an &#39;our&#39; (anywhere in the pad) with the same name and the
  same stash as &#39;ourstash&#39;</code></pre>

<p><code>is_our</code> indicates that the name to check is an <code>&quot;our&quot;</code> declaration.</p>

<ul>

<pre><code class="plaintext">void  pad_check_dup(PADNAME *name, U32 flags, const HV *ourstash)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="pad_findlex"><a class="permalink" href="perlintern.html#pad_findlex">#</a><code>pad_findlex</code> </dt>
<dd>

<p>Find a named lexical anywhere in a chain of nested pads. Add fake entries in the inner pads if it&#39;s found in an outer one.</p>

<p>Returns the offset in the bottom pad of the lex or the fake lex. <code>cv</code> is the CV in which to start the search, and seq is the current <code>cop_seq</code> to match against. If <code>warn</code> is true, print appropriate warnings. The <code>out_</code>* vars return values, and so are pointers to where the returned values should be stored. <code>out_capture</code>, if non-null, requests that the innermost instance of the lexical is captured; <code>out_name</code> is set to the innermost matched pad name or fake pad name; <code>out_flags</code> returns the flags normally associated with the <code>PARENT_FAKELEX_FLAGS</code> field of a fake pad name.</p>

<p>Note that <code>pad_findlex()</code> is recursive; it recurses up the chain of CVs, then comes back down, adding fake entries as it goes. It has to be this way because fake names in anon prototypes have to store in <code>xpadn_low</code> the index into the parent pad.</p>

<ul>

<pre><code class="plaintext">PADOFFSET  pad_findlex(const char *namepv, STRLEN namelen,
                       U32 flags, const CV* cv, U32 seq, int warn,
                       SV** out_capture, PADNAME** out_name,
                       int *out_flags)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="pad_fixup_inner_anons"><a class="permalink" href="perlintern.html#pad_fixup_inner_anons">#</a><code>pad_fixup_inner_anons</code> </dt>
<dd>

<p>For any anon CVs in the pad, change <code>CvOUTSIDE</code> of that CV from <code>old_cv</code> to <code>new_cv</code> if necessary. Needed when a newly-compiled CV has to be moved to a pre-existing CV struct.</p>

<ul>

<pre><code class="plaintext">void  pad_fixup_inner_anons(PADLIST *padlist, CV *old_cv,
                            CV *new_cv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="pad_free"><a class="permalink" href="perlintern.html#pad_free">#</a><code>pad_free</code> </dt>
<dd>

<p>Free the SV at offset po in the current pad.</p>

<ul>

<pre><code class="plaintext">void  pad_free(PADOFFSET po)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="pad_leavemy"><a class="permalink" href="perlintern.html#pad_leavemy">#</a><code>pad_leavemy</code> </dt>
<dd>

<p>Cleanup at end of scope during compilation: set the max seq number for lexicals in this scope and warn of any lexicals that never got introduced.</p>

<ul>

<pre><code class="plaintext">OP *  pad_leavemy()</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="padlist_dup"><a class="permalink" href="perlintern.html#padlist_dup">#</a><code>padlist_dup</code> </dt>
<dd>

<p>Duplicates a pad.</p>

<ul>

<pre><code class="plaintext">PADLIST *  padlist_dup(PADLIST *srcpad, CLONE_PARAMS *param)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="padname_dup"><a class="permalink" href="perlintern.html#padname_dup">#</a><code>padname_dup</code> </dt>
<dd>

<p>Duplicates a pad name.</p>

<ul>

<pre><code class="plaintext">PADNAME *  padname_dup(PADNAME *src, CLONE_PARAMS *param)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="padnamelist_dup"><a class="permalink" href="perlintern.html#padnamelist_dup">#</a><code>padnamelist_dup</code> </dt>
<dd>

<p>Duplicates a pad name list.</p>

<ul>

<pre><code class="plaintext">PADNAMELIST *  padnamelist_dup(PADNAMELIST *srcpad,
                               CLONE_PARAMS *param)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="pad_push"><a class="permalink" href="perlintern.html#pad_push">#</a><code>pad_push</code> </dt>
<dd>

<p>Push a new pad frame onto the padlist, unless there&#39;s already a pad at this depth, in which case don&#39;t bother creating a new one. Then give the new pad an <code>@_</code> in slot zero.</p>

<ul>

<pre><code class="plaintext">void  pad_push(PADLIST *padlist, int depth)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="pad_reset"><a class="permalink" href="perlintern.html#pad_reset">#</a><code>pad_reset</code> </dt>
<dd>

<p>Mark all the current temporaries for reuse</p>

<ul>

<pre><code class="plaintext">void  pad_reset()</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="pad_setsv"><a class="permalink" href="perlintern.html#pad_setsv">#</a><code>pad_setsv</code> </dt>
<dd>

<p>Set the value at offset <code>po</code> in the current (compiling or executing) pad. Use the macro <code>PAD_SETSV()</code> rather than calling this function directly.</p>

<ul>

<pre><code class="plaintext">void  pad_setsv(PADOFFSET po, SV* sv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="pad_sv"><a class="permalink" href="perlintern.html#pad_sv">#</a><code>pad_sv</code> </dt>
<dd>

<p>Get the value at offset <code>po</code> in the current (compiling or executing) pad. Use macro <code>PAD_SV</code> instead of calling this function directly.</p>

<ul>

<pre><code class="plaintext">SV*  pad_sv(PADOFFSET po)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="pad_swipe"><a class="permalink" href="perlintern.html#pad_swipe">#</a><code>pad_swipe</code> </dt>
<dd>

<p>Abandon the tmp in the current pad at offset <code>po</code> and replace with a new one.</p>

<ul>

<pre><code class="plaintext">void  pad_swipe(PADOFFSET po, bool refadjust)</code></pre>

</ul>

</dd>
</dl>

<h1 id="Errno"><a class="permalink" href="perlintern.html#Errno">#</a>Errno</h1>

<dl>

<dt id="dSAVEDERRNO"><a class="permalink" href="perlintern.html#dSAVEDERRNO">#</a><code>dSAVEDERRNO</code> </dt>
<dd>

<p>Declare variables needed to save <code>errno</code> and any operating system specific error number.</p>

<ul>

<pre><code class="plaintext">void  dSAVEDERRNO</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="dSAVE_ERRNO"><a class="permalink" href="perlintern.html#dSAVE_ERRNO">#</a><code>dSAVE_ERRNO</code> </dt>
<dd>

<p>Declare variables needed to save <code>errno</code> and any operating system specific error number, and save them for optional later restoration by <code>RESTORE_ERRNO</code>.</p>

<ul>

<pre><code class="plaintext">void  dSAVE_ERRNO</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="RESTORE_ERRNO"><a class="permalink" href="perlintern.html#RESTORE_ERRNO">#</a><code>RESTORE_ERRNO</code> </dt>
<dd>

<p>Restore <code>errno</code> and any operating system specific error number that was saved by <code>dSAVE_ERRNO</code> or <code>RESTORE_ERRNO</code>.</p>

<ul>

<pre><code class="plaintext">void  RESTORE_ERRNO</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="SAVE_ERRNO"><a class="permalink" href="perlintern.html#SAVE_ERRNO">#</a><code>SAVE_ERRNO</code> </dt>
<dd>

<p>Save <code>errno</code> and any operating system specific error number for optional later restoration by <code>RESTORE_ERRNO</code>. Requires <code>dSAVEDERRNO</code> or <code>dSAVE_ERRNO</code> in scope.</p>

<ul>

<pre><code class="plaintext">void  SAVE_ERRNO</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="SETERRNO"><a class="permalink" href="perlintern.html#SETERRNO">#</a><code>SETERRNO</code> </dt>
<dd>

<p>Set <code>errno</code>, and on VMS set <code>vaxc$errno</code>.</p>

<ul>

<pre><code class="plaintext">void  SETERRNO(int errcode, int vmserrcode)</code></pre>

</ul>

</dd>
</dl>

<h1 id="Exception-Handling-(simple)-Macros"><a class="permalink" href="perlintern.html#Exception-Handling-(simple)-Macros">#</a><a id="Exception"></a><a id="Exception-Handling-simple-Macros"></a>Exception Handling (simple) Macros</h1>

<p>There are only public API items currently in Exception Handling (simple) Macros</p>

<h1 id="Filesystem-configuration-values"><a class="permalink" href="perlintern.html#Filesystem-configuration-values">#</a><a id="Filesystem"></a>Filesystem configuration values</h1>

<p>There are only public API items currently in Filesystem configuration values</p>

<h1 id="Floating-point-configuration-values"><a class="permalink" href="perlintern.html#Floating-point-configuration-values">#</a><a id="Floating"></a>Floating point configuration values</h1>

<p>There are only public API items currently in Floating point configuration values</p>

<h1 id="Formats"><a class="permalink" href="perlintern.html#Formats">#</a>Formats</h1>

<p>There are only public API items currently in Formats</p>

<h1 id="General-Configuration"><a class="permalink" href="perlintern.html#General-Configuration">#</a><a id="General"></a>General Configuration</h1>

<p>There are only public API items currently in General Configuration</p>

<h1 id="Global-Variables"><a class="permalink" href="perlintern.html#Global-Variables">#</a><a id="Global"></a>Global Variables</h1>

<p>There are only public API items currently in Global Variables</p>

<h1 id="GV-Handling"><a class="permalink" href="perlintern.html#GV-Handling">#</a><a id="GV"></a>GV Handling</h1>

<dl>

<dt id="gv_stashsvpvn_cached"><a class="permalink" href="perlintern.html#gv_stashsvpvn_cached">#</a><code>gv_stashsvpvn_cached</code> </dt>
<dd>

<p>Returns a pointer to the stash for a specified package, possibly cached. Implements both <a href="perlapi.html#gv_stashpvn">&quot;<code>gv_stashpvn</code>&quot; in perlapi</a> and <a href="perlapi.html#gv_stashsv">&quot;<code>gv_stashsv</code>&quot; in perlapi</a>.</p>

<p>Requires one of either <code>namesv</code> or <code>namepv</code> to be non-null.</p>

<p>If the flag <code>GV_CACHE_ONLY</code> is set, return the stash only if found in the cache; see <a href="perlapi.html#gv_stashpvn">&quot;<code>gv_stashpvn</code>&quot; in perlapi</a> for details on the other <code>flags</code>.</p>

<p>Note it is strongly preferred for <code>namesv</code> to be non-null, for performance reasons.</p>

<ul>

<pre><code class="plaintext">HV*  gv_stashsvpvn_cached(SV *namesv, const char* name,
                          U32 namelen, I32 flags)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="gv_try_downgrade"><a class="permalink" href="perlintern.html#gv_try_downgrade">#</a><code>gv_try_downgrade</code> </dt>
<dd>

<p>NOTE: <code>gv_try_downgrade</code> is <b>experimental</b> and may change or be removed without notice.</p>

<p>If the typeglob <code>gv</code> can be expressed more succinctly, by having something other than a real GV in its place in the stash, replace it with the optimised form. Basic requirements for this are that <code>gv</code> is a real typeglob, is sufficiently ordinary, and is only referenced from its package. This function is meant to be used when a GV has been looked up in part to see what was there, causing upgrading, but based on what was found it turns out that the real GV isn&#39;t required after all.</p>

<p>If <code>gv</code> is a completely empty typeglob, it is deleted from the stash.</p>

<p>If <code>gv</code> is a typeglob containing only a sufficiently-ordinary constant sub, the typeglob is replaced with a scalar-reference placeholder that more compactly represents the same thing.</p>

<ul>

<pre><code class="plaintext">void  gv_try_downgrade(GV* gv)</code></pre>

</ul>

</dd>
</dl>

<h1 id="Hook-manipulation"><a class="permalink" href="perlintern.html#Hook-manipulation">#</a><a id="Hook"></a>Hook manipulation</h1>

<p>There are only public API items currently in Hook manipulation</p>

<h1 id="HV-Handling"><a class="permalink" href="perlintern.html#HV-Handling">#</a><a id="HV"></a>HV Handling</h1>

<dl>

<dt id="hv_ename_add"><a class="permalink" href="perlintern.html#hv_ename_add">#</a><code>hv_ename_add</code> </dt>
<dd>

<p>Adds a name to a stash&#39;s internal list of effective names. See <code><a href="perlintern.html#hv_ename_delete">&quot;hv_ename_delete&quot;</a></code>.</p>

<p>This is called when a stash is assigned to a new location in the symbol table.</p>

<ul>

<pre><code class="plaintext">void  hv_ename_add(HV *hv, const char *name, U32 len, U32 flags)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="hv_ename_delete"><a class="permalink" href="perlintern.html#hv_ename_delete">#</a><code>hv_ename_delete</code> </dt>
<dd>

<p>Removes a name from a stash&#39;s internal list of effective names. If this is the name returned by <code>HvENAME</code>, then another name in the list will take its place (<code>HvENAME</code> will use it).</p>

<p>This is called when a stash is deleted from the symbol table.</p>

<ul>

<pre><code class="plaintext">void  hv_ename_delete(HV *hv, const char *name, U32 len,
                      U32 flags)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="refcounted_he_chain_2hv"><a class="permalink" href="perlintern.html#refcounted_he_chain_2hv">#</a><code>refcounted_he_chain_2hv</code> </dt>
<dd>

<p>Generates and returns a <code>HV *</code> representing the content of a <code>refcounted_he</code> chain. <code>flags</code> is currently unused and must be zero.</p>

<ul>

<pre><code class="plaintext">HV *  refcounted_he_chain_2hv(const struct refcounted_he *c,
                              U32 flags)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="refcounted_he_fetch_pv"><a class="permalink" href="perlintern.html#refcounted_he_fetch_pv">#</a><code>refcounted_he_fetch_pv</code> </dt>
<dd>

<p>Like <a href="perlintern.html#refcounted_he_fetch_pvn">&quot;refcounted_he_fetch_pvn&quot;</a>, but takes a nul-terminated string instead of a string/length pair.</p>

<ul>

<pre><code class="plaintext">SV *  refcounted_he_fetch_pv(const struct refcounted_he *chain,
                             const char *key, U32 hash, U32 flags)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="refcounted_he_fetch_pvn"><a class="permalink" href="perlintern.html#refcounted_he_fetch_pvn">#</a><code>refcounted_he_fetch_pvn</code> </dt>
<dd>

<p>Search along a <code>refcounted_he</code> chain for an entry with the key specified by <code>keypv</code> and <code>keylen</code>. If <code>flags</code> has the <code>REFCOUNTED_HE_KEY_UTF8</code> bit set, the key octets are interpreted as UTF-8, otherwise they are interpreted as Latin-1. <code>hash</code> is a precomputed hash of the key string, or zero if it has not been precomputed. Returns a mortal scalar representing the value associated with the key, or <code>&amp;PL_sv_placeholder</code> if there is no value associated with the key.</p>

<ul>

<pre><code class="plaintext">SV *  refcounted_he_fetch_pvn(const struct refcounted_he *chain,
                              const char *keypv, STRLEN keylen,
                              U32 hash, U32 flags)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="refcounted_he_fetch_pvs"><a class="permalink" href="perlintern.html#refcounted_he_fetch_pvs">#</a><code>refcounted_he_fetch_pvs</code> </dt>
<dd>

<p>Like <a href="perlintern.html#refcounted_he_fetch_pvn">&quot;refcounted_he_fetch_pvn&quot;</a>, but takes a literal string instead of a string/length pair, and no precomputed hash.</p>

<ul>

<pre><code class="plaintext">SV *  refcounted_he_fetch_pvs(const struct refcounted_he *chain,
                              &quot;key&quot;, U32 flags)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="refcounted_he_fetch_sv"><a class="permalink" href="perlintern.html#refcounted_he_fetch_sv">#</a><code>refcounted_he_fetch_sv</code> </dt>
<dd>

<p>Like <a href="perlintern.html#refcounted_he_fetch_pvn">&quot;refcounted_he_fetch_pvn&quot;</a>, but takes a Perl scalar instead of a string/length pair.</p>

<ul>

<pre><code class="plaintext">SV *  refcounted_he_fetch_sv(const struct refcounted_he *chain,
                             SV *key, U32 hash, U32 flags)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="refcounted_he_free"><a class="permalink" href="perlintern.html#refcounted_he_free">#</a><code>refcounted_he_free</code> </dt>
<dd>

<p>Decrements the reference count of a <code>refcounted_he</code> by one. If the reference count reaches zero the structure&#39;s memory is freed, which (recursively) causes a reduction of its parent <code>refcounted_he</code>&#39;s reference count. It is safe to pass a null pointer to this function: no action occurs in this case.</p>

<ul>

<pre><code class="plaintext">void  refcounted_he_free(struct refcounted_he *he)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="refcounted_he_inc"><a class="permalink" href="perlintern.html#refcounted_he_inc">#</a><code>refcounted_he_inc</code> </dt>
<dd>

<p>Increment the reference count of a <code>refcounted_he</code>. The pointer to the <code>refcounted_he</code> is also returned. It is safe to pass a null pointer to this function: no action occurs and a null pointer is returned.</p>

<ul>

<pre><code class="plaintext">struct refcounted_he *  refcounted_he_inc(
                                         struct refcounted_he *he)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="refcounted_he_new_pv"><a class="permalink" href="perlintern.html#refcounted_he_new_pv">#</a><code>refcounted_he_new_pv</code> </dt>
<dd>

<p>Like <a href="perlintern.html#refcounted_he_new_pvn">&quot;refcounted_he_new_pvn&quot;</a>, but takes a nul-terminated string instead of a string/length pair.</p>

<ul>

<pre><code class="plaintext">struct refcounted_he *  refcounted_he_new_pv(
                                     struct refcounted_he *parent,
                                     const char *key, U32 hash,
                                     SV *value, U32 flags)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="refcounted_he_new_pvn"><a class="permalink" href="perlintern.html#refcounted_he_new_pvn">#</a><code>refcounted_he_new_pvn</code> </dt>
<dd>

<p>Creates a new <code>refcounted_he</code>. This consists of a single key/value pair and a reference to an existing <code>refcounted_he</code> chain (which may be empty), and thus forms a longer chain. When using the longer chain, the new key/value pair takes precedence over any entry for the same key further along the chain.</p>

<p>The new key is specified by <code>keypv</code> and <code>keylen</code>. If <code>flags</code> has the <code>REFCOUNTED_HE_KEY_UTF8</code> bit set, the key octets are interpreted as UTF-8, otherwise they are interpreted as Latin-1. <code>hash</code> is a precomputed hash of the key string, or zero if it has not been precomputed.</p>

<p><code>value</code> is the scalar value to store for this key. <code>value</code> is copied by this function, which thus does not take ownership of any reference to it, and later changes to the scalar will not be reflected in the value visible in the <code>refcounted_he</code>. Complex types of scalar will not be stored with referential integrity, but will be coerced to strings. <code>value</code> may be either null or <code>&amp;PL_sv_placeholder</code> to indicate that no value is to be associated with the key; this, as with any non-null value, takes precedence over the existence of a value for the key further along the chain.</p>

<p><code>parent</code> points to the rest of the <code>refcounted_he</code> chain to be attached to the new <code>refcounted_he</code>. This function takes ownership of one reference to <code>parent</code>, and returns one reference to the new <code>refcounted_he</code>.</p>

<ul>

<pre><code class="plaintext">struct refcounted_he *  refcounted_he_new_pvn(
                                     struct refcounted_he *parent,
                                     const char *keypv,
                                     STRLEN keylen, U32 hash,
                                     SV *value, U32 flags)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="refcounted_he_new_pvs"><a class="permalink" href="perlintern.html#refcounted_he_new_pvs">#</a><code>refcounted_he_new_pvs</code> </dt>
<dd>

<p>Like <a href="perlintern.html#refcounted_he_new_pvn">&quot;refcounted_he_new_pvn&quot;</a>, but takes a literal string instead of a string/length pair, and no precomputed hash.</p>

<ul>

<pre><code class="plaintext">struct refcounted_he *  refcounted_he_new_pvs(
                                     struct refcounted_he *parent,
                                     &quot;key&quot;, SV *value, U32 flags)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="refcounted_he_new_sv"><a class="permalink" href="perlintern.html#refcounted_he_new_sv">#</a><code>refcounted_he_new_sv</code> </dt>
<dd>

<p>Like <a href="perlintern.html#refcounted_he_new_pvn">&quot;refcounted_he_new_pvn&quot;</a>, but takes a Perl scalar instead of a string/length pair.</p>

<ul>

<pre><code class="plaintext">struct refcounted_he *  refcounted_he_new_sv(
                                     struct refcounted_he *parent,
                                     SV *key, U32 hash, SV *value,
                                     U32 flags)</code></pre>

</ul>

</dd>
</dl>

<h1 id="Input/Output"><a class="permalink" href="perlintern.html#Input/Output">#</a><a id="Input"></a><a id="Input-Output"></a>Input/Output</h1>

<dl>

<dt id="PL_last_in_gv"><a class="permalink" href="perlintern.html#PL_last_in_gv">#</a><code>PL_last_in_gv</code> </dt>
<dd>

<p>The GV which was last used for a filehandle input operation. (<code>&lt;FH&gt;</code>)</p>

<p>On threaded perls, each thread has an independent copy of this variable; each initialized at creation time with the current value of the creating thread&#39;s copy.</p>

<ul>

<pre><code class="plaintext">GV*  PL_last_in_gv</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PL_ofsgv"><a class="permalink" href="perlintern.html#PL_ofsgv">#</a><code>PL_ofsgv</code> </dt>
<dd>

<p>The glob containing the output field separator - <code>*,</code> in Perl space.</p>

<p>On threaded perls, each thread has an independent copy of this variable; each initialized at creation time with the current value of the creating thread&#39;s copy.</p>

<ul>

<pre><code class="plaintext">GV*  PL_ofsgv</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PL_rs"><a class="permalink" href="perlintern.html#PL_rs">#</a><code>PL_rs</code> </dt>
<dd>

<p>The input record separator - <code>$/</code> in Perl space.</p>

<p>On threaded perls, each thread has an independent copy of this variable; each initialized at creation time with the current value of the creating thread&#39;s copy.</p>

<ul>

<pre><code class="plaintext">SV*  PL_rs</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="start_glob"><a class="permalink" href="perlintern.html#start_glob">#</a><code>start_glob</code> </dt>
<dd>

<p>NOTE: <code>start_glob</code> is <b>experimental</b> and may change or be removed without notice.</p>

<p>Function called by <code>do_readline</code> to spawn a glob (or do the glob inside perl on VMS). This code used to be inline, but now perl uses <code>File::Glob</code> this glob starter is only used by miniperl during the build process, or when PERL_EXTERNAL_GLOB is defined. Moving it away shrinks <i>pp_hot.c</i>; shrinking <i>pp_hot.c</i> helps speed perl up.</p>

<p>NOTE: <code>start_glob</code> must be explicitly called as <code>Perl_start_glob</code> with an <code>aTHX_</code> parameter.</p>

<ul>

<pre><code class="plaintext">PerlIO*  Perl_start_glob(pTHX_ SV *tmpglob, IO *io)</code></pre>

</ul>

</dd>
</dl>

<h1 id="Integer-configuration-values"><a class="permalink" href="perlintern.html#Integer-configuration-values">#</a><a id="Integer"></a>Integer configuration values</h1>

<p>There are only public API items currently in Integer configuration values</p>

<h1 id="Lexer-interface"><a class="permalink" href="perlintern.html#Lexer-interface">#</a><a id="Lexer"></a>Lexer interface</h1>

<dl>

<dt id="validate_proto"><a class="permalink" href="perlintern.html#validate_proto">#</a><code>validate_proto</code> </dt>
<dd>

<p>NOTE: <code>validate_proto</code> is <b>experimental</b> and may change or be removed without notice.</p>

<p>This function performs syntax checking on a prototype, <code>proto</code>. If <code>warn</code> is true, any illegal characters or mismatched brackets will trigger illegalproto warnings, declaring that they were detected in the prototype for <code>name</code>.</p>

<p>The return value is <code>true</code> if this is a valid prototype, and <code>false</code> if it is not, regardless of whether <code>warn</code> was <code>true</code> or <code>false</code>.</p>

<p>Note that <code>NULL</code> is a valid <code>proto</code> and will always return <code>true</code>.</p>

<ul>

<pre><code class="plaintext">bool  validate_proto(SV *name, SV *proto, bool warn,
                     bool curstash)</code></pre>

</ul>

</dd>
</dl>

<h1 id="Locales"><a class="permalink" href="perlintern.html#Locales">#</a>Locales</h1>

<p>There are only public API items currently in Locales</p>

<h1 id="Magic"><a class="permalink" href="perlintern.html#Magic">#</a>Magic</h1>

<dl>

<dt id="magic_clearhint"><a class="permalink" href="perlintern.html#magic_clearhint">#</a><code>magic_clearhint</code> </dt>
<dd>

<p>Triggered by a delete from <code>%^H</code>, records the key to <code>PL_compiling.cop_hints_hash</code>.</p>

<ul>

<pre><code class="plaintext">int  magic_clearhint(SV* sv, MAGIC* mg)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="magic_clearhints"><a class="permalink" href="perlintern.html#magic_clearhints">#</a><code>magic_clearhints</code> </dt>
<dd>

<p>Triggered by clearing <code>%^H</code>, resets <code>PL_compiling.cop_hints_hash</code>.</p>

<ul>

<pre><code class="plaintext">int  magic_clearhints(SV* sv, MAGIC* mg)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="magic_methcall"><a class="permalink" href="perlintern.html#magic_methcall">#</a><code>magic_methcall</code> </dt>
<dd>

<p>Invoke a magic method (like FETCH).</p>

<p><code>sv</code> and <code>mg</code> are the tied thingy and the tie magic.</p>

<p><code>meth</code> is the name of the method to call.</p>

<p><code>argc</code> is the number of args (in addition to $self) to pass to the method.</p>

<p>The <code>flags</code> can be:</p>

<pre><code class="plaintext">G_DISCARD     invoke method with G_DISCARD flag and don&#39;t
              return a value
G_UNDEF_FILL  fill the stack with argc pointers to
              PL_sv_undef</code></pre>

<p>The arguments themselves are any values following the <code>flags</code> argument.</p>

<p>Returns the SV (if any) returned by the method, or <code>NULL</code> on failure.</p>

<p>NOTE: <code>magic_methcall</code> must be explicitly called as <code>Perl_magic_methcall</code> with an <code>aTHX_</code> parameter.</p>

<ul>

<pre><code class="plaintext">SV*  Perl_magic_methcall(pTHX_ SV *sv, const MAGIC *mg, SV *meth,
                         U32 flags, U32 argc, ...)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="magic_sethint"><a class="permalink" href="perlintern.html#magic_sethint">#</a><code>magic_sethint</code> </dt>
<dd>

<p>Triggered by a store to <code>%^H</code>, records the key/value pair to <code>PL_compiling.cop_hints_hash</code>. It is assumed that hints aren&#39;t storing anything that would need a deep copy. Maybe we should warn if we find a reference.</p>

<ul>

<pre><code class="plaintext">int  magic_sethint(SV* sv, MAGIC* mg)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="mg_localize"><a class="permalink" href="perlintern.html#mg_localize">#</a><code>mg_localize</code> </dt>
<dd>

<p>Copy some of the magic from an existing SV to new localized version of that SV. Container magic (<i>e.g.</i>, <code>%ENV</code>, <code>$1</code>, <code>tie</code>) gets copied, value magic doesn&#39;t (<i>e.g.</i>, <code>taint</code>, <code>pos</code>).</p>

<p>If <code>setmagic</code> is false then no set magic will be called on the new (empty) SV. This typically means that assignment will soon follow (e.g. <span style="white-space: nowrap;"><code>&#39;local $x = $y&#39;</code></span>), and that will handle the magic.</p>

<ul>

<pre><code class="plaintext">void  mg_localize(SV* sv, SV* nsv, bool setmagic)</code></pre>

</ul>

</dd>
</dl>

<h1 id="Memory-Management"><a class="permalink" href="perlintern.html#Memory-Management">#</a><a id="Memory"></a>Memory Management</h1>

<p>There are only public API items currently in Memory Management</p>

<h1 id="MRO"><a class="permalink" href="perlintern.html#MRO">#</a>MRO</h1>

<dl>

<dt id="mro_get_linear_isa_dfs"><a class="permalink" href="perlintern.html#mro_get_linear_isa_dfs">#</a><code>mro_get_linear_isa_dfs</code> </dt>
<dd>

<p>Returns the Depth-First Search linearization of <code>@ISA</code> the given stash. The return value is a read-only AV*. <code>level</code> should be 0 (it is used internally in this function&#39;s recursion).</p>

<p>You are responsible for <code>SvREFCNT_inc()</code> on the return value if you plan to store it anywhere semi-permanently (otherwise it might be deleted out from under you the next time the cache is invalidated).</p>

<ul>

<pre><code class="plaintext">AV*  mro_get_linear_isa_dfs(HV* stash, U32 level)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="mro_isa_changed_in"><a class="permalink" href="perlintern.html#mro_isa_changed_in">#</a><code>mro_isa_changed_in</code> </dt>
<dd>

<p>Takes the necessary steps (cache invalidations, mostly) when the <code>@ISA</code> of the given package has changed. Invoked by the <code>setisa</code> magic, should not need to invoke directly.</p>

<ul>

<pre><code class="plaintext">void  mro_isa_changed_in(HV* stash)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="mro_package_moved"><a class="permalink" href="perlintern.html#mro_package_moved">#</a><code>mro_package_moved</code> </dt>
<dd>

<p>Call this function to signal to a stash that it has been assigned to another spot in the stash hierarchy. <code>stash</code> is the stash that has been assigned. <code>oldstash</code> is the stash it replaces, if any. <code>gv</code> is the glob that is actually being assigned to.</p>

<p>This can also be called with a null first argument to indicate that <code>oldstash</code> has been deleted.</p>

<p>This function invalidates isa caches on the old stash, on all subpackages nested inside it, and on the subclasses of all those, including non-existent packages that have corresponding entries in <code>stash</code>.</p>

<p>It also sets the effective names (<code>HvENAME</code>) on all the stashes as appropriate.</p>

<p>If the <code>gv</code> is present and is not in the symbol table, then this function simply returns. This checked will be skipped if <code>flags &amp; 1</code>.</p>

<ul>

<pre><code class="plaintext">void  mro_package_moved(HV * const stash, HV * const oldstash,
                        const GV * const gv, U32 flags)</code></pre>

</ul>

</dd>
</dl>

<h1 id="Multicall-Functions"><a class="permalink" href="perlintern.html#Multicall-Functions">#</a><a id="Multicall"></a>Multicall Functions</h1>

<p>There are only public API items currently in Multicall Functions</p>

<h1 id="Numeric-Functions"><a class="permalink" href="perlintern.html#Numeric-Functions">#</a><a id="Numeric"></a>Numeric Functions</h1>

<dl>

<dt id="grok_atoUV"><a class="permalink" href="perlintern.html#grok_atoUV">#</a><code>grok_atoUV</code> </dt>
<dd>

<p>parse a string, looking for a decimal unsigned integer.</p>

<p>On entry, <code>pv</code> points to the beginning of the string; <code>valptr</code> points to a UV that will receive the converted value, if found; <code>endptr</code> is either NULL or points to a variable that points to one byte beyond the point in <code>pv</code> that this routine should examine. If <code>endptr</code> is NULL, <code>pv</code> is assumed to be NUL-terminated.</p>

<p>Returns FALSE if <code>pv</code> doesn&#39;t represent a valid unsigned integer value (with no leading zeros). Otherwise it returns TRUE, and sets <code>*valptr</code> to that value.</p>

<p>If you constrain the portion of <code>pv</code> that is looked at by this function (by passing a non-NULL <code>endptr</code>), and if the intial bytes of that portion form a valid value, it will return TRUE, setting <code>*endptr</code> to the byte following the final digit of the value. But if there is no constraint at what&#39;s looked at, all of <code>pv</code> must be valid in order for TRUE to be returned. <code>*endptr</code> is unchanged from its value on input if FALSE is returned;</p>

<p>The only characters this accepts are the decimal digits &#39;0&#39;..&#39;9&#39;.</p>

<p>As opposed to <a href="http://man.he.net/man3/atoi">atoi(3)</a> or <a href="http://man.he.net/man3/strtol">strtol(3)</a>, <code>grok_atoUV</code> does NOT allow optional leading whitespace, nor negative inputs. If such features are required, the calling code needs to explicitly implement those.</p>

<p>Note that this function returns FALSE for inputs that would overflow a UV, or have leading zeros. Thus a single <code>0</code> is accepted, but not <code>00</code> nor <code>01</code>, <code>002</code>, <i>etc</i>.</p>

<p>Background: <code>atoi</code> has severe problems with illegal inputs, it cannot be used for incremental parsing, and therefore should be avoided <code>atoi</code> and <code>strtol</code> are also affected by locale settings, which can also be seen as a bug (global state controlled by user environment).</p>

<ul>

<pre><code class="plaintext">bool  grok_atoUV(const char* pv, UV* valptr, const char** endptr)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="isinfnansv"><a class="permalink" href="perlintern.html#isinfnansv">#</a><code>isinfnansv</code> </dt>
<dd>

<p>Checks whether the argument would be either an infinity or <code>NaN</code> when used as a number, but is careful not to trigger non-numeric or uninitialized warnings. it assumes the caller has done <code>SvGETMAGIC(sv)</code> already.</p>

<ul>

<pre><code class="plaintext">bool  isinfnansv(SV *sv)</code></pre>

</ul>

</dd>
</dl>

<h1 id="Optree-construction"><a class="permalink" href="perlintern.html#Optree-construction">#</a><a id="Optree"></a>Optree construction</h1>

<p>There are only public API items currently in Optree construction</p>

<h1 id="Optree-Manipulation-Functions"><a class="permalink" href="perlintern.html#Optree-Manipulation-Functions">#</a><a id="Optree1"></a>Optree Manipulation Functions</h1>

<dl>

<dt id="finalize_optree"><a class="permalink" href="perlintern.html#finalize_optree">#</a><code>finalize_optree</code> </dt>
<dd>

<p>This function finalizes the optree. Should be called directly after the complete optree is built. It does some additional checking which can&#39;t be done in the normal <code>ck_</code>xxx functions and makes the tree thread-safe.</p>

<ul>

<pre><code class="plaintext">void  finalize_optree(OP* o)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="newATTRSUB_x"><a class="permalink" href="perlintern.html#newATTRSUB_x">#</a><code>newATTRSUB_x</code> </dt>
<dd>

<p>Construct a Perl subroutine, also performing some surrounding jobs.</p>

<p>This function is expected to be called in a Perl compilation context, and some aspects of the subroutine are taken from global variables associated with compilation. In particular, <code>PL_compcv</code> represents the subroutine that is currently being compiled. It must be non-null when this function is called, and some aspects of the subroutine being constructed are taken from it. The constructed subroutine may actually be a reuse of the <code>PL_compcv</code> object, but will not necessarily be so.</p>

<p>If <code>block</code> is null then the subroutine will have no body, and for the time being it will be an error to call it. This represents a forward subroutine declaration such as <span style="white-space: nowrap;"><code>sub foo ($$);</code></span>. If <code>block</code> is non-null then it provides the Perl code of the subroutine body, which will be executed when the subroutine is called. This body includes any argument unwrapping code resulting from a subroutine signature or similar. The pad use of the code must correspond to the pad attached to <code>PL_compcv</code>. The code is not expected to include a <code>leavesub</code> or <code>leavesublv</code> op; this function will add such an op. <code>block</code> is consumed by this function and will become part of the constructed subroutine.</p>

<p><code>proto</code> specifies the subroutine&#39;s prototype, unless one is supplied as an attribute (see below). If <code>proto</code> is null, then the subroutine will not have a prototype. If <code>proto</code> is non-null, it must point to a <code>const</code> op whose value is a string, and the subroutine will have that string as its prototype. If a prototype is supplied as an attribute, the attribute takes precedence over <code>proto</code>, but in that case <code>proto</code> should preferably be null. In any case, <code>proto</code> is consumed by this function.</p>

<p><code>attrs</code> supplies attributes to be applied the subroutine. A handful of attributes take effect by built-in means, being applied to <code>PL_compcv</code> immediately when seen. Other attributes are collected up and attached to the subroutine by this route. <code>attrs</code> may be null to supply no attributes, or point to a <code>const</code> op for a single attribute, or point to a <code>list</code> op whose children apart from the <code>pushmark</code> are <code>const</code> ops for one or more attributes. Each <code>const</code> op must be a string, giving the attribute name optionally followed by parenthesised arguments, in the manner in which attributes appear in Perl source. The attributes will be applied to the sub by this function. <code>attrs</code> is consumed by this function.</p>

<p>If <code>o_is_gv</code> is false and <code>o</code> is null, then the subroutine will be anonymous. If <code>o_is_gv</code> is false and <code>o</code> is non-null, then <code>o</code> must point to a <code>const</code> OP, which will be consumed by this function, and its string value supplies a name for the subroutine. The name may be qualified or unqualified, and if it is unqualified then a default stash will be selected in some manner. If <code>o_is_gv</code> is true, then <code>o</code> doesn&#39;t point to an <code>OP</code> at all, but is instead a cast pointer to a <code>GV</code> by which the subroutine will be named.</p>

<p>If there is already a subroutine of the specified name, then the new sub will either replace the existing one in the glob or be merged with the existing one. A warning may be generated about redefinition.</p>

<p>If the subroutine has one of a few special names, such as <code>BEGIN</code> or <code>END</code>, then it will be claimed by the appropriate queue for automatic running of phase-related subroutines. In this case the relevant glob will be left not containing any subroutine, even if it did contain one before. In the case of <code>BEGIN</code>, the subroutine will be executed and the reference to it disposed of before this function returns.</p>

<p>The function returns a pointer to the constructed subroutine. If the sub is anonymous then ownership of one counted reference to the subroutine is transferred to the caller. If the sub is named then the caller does not get ownership of a reference. In most such cases, where the sub has a non-phase name, the sub will be alive at the point it is returned by virtue of being contained in the glob that names it. A phase-named subroutine will usually be alive by virtue of the reference owned by the phase&#39;s automatic run queue. But a <code>BEGIN</code> subroutine, having already been executed, will quite likely have been destroyed already by the time this function returns, making it erroneous for the caller to make any use of the returned pointer. It is the caller&#39;s responsibility to ensure that it knows which of these situations applies.</p>

<ul>

<pre><code class="plaintext">CV*  newATTRSUB_x(I32 floor, OP *o, OP *proto, OP *attrs,
                  OP *block, bool o_is_gv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="newXS_len_flags"><a class="permalink" href="perlintern.html#newXS_len_flags">#</a><code>newXS_len_flags</code> </dt>
<dd>

<p>Construct an XS subroutine, also performing some surrounding jobs.</p>

<p>The subroutine will have the entry point <code>subaddr</code>. It will have the prototype specified by the nul-terminated string <code>proto</code>, or no prototype if <code>proto</code> is null. The prototype string is copied; the caller can mutate the supplied string afterwards. If <code>filename</code> is non-null, it must be a nul-terminated filename, and the subroutine will have its <code>CvFILE</code> set accordingly. By default <code>CvFILE</code> is set to point directly to the supplied string, which must be static. If <code>flags</code> has the <code>XS_DYNAMIC_FILENAME</code> bit set, then a copy of the string will be taken instead.</p>

<p>Other aspects of the subroutine will be left in their default state. If anything else needs to be done to the subroutine for it to function correctly, it is the caller&#39;s responsibility to do that after this function has constructed it. However, beware of the subroutine potentially being destroyed before this function returns, as described below.</p>

<p>If <code>name</code> is null then the subroutine will be anonymous, with its <code>CvGV</code> referring to an <code>__ANON__</code> glob. If <code>name</code> is non-null then the subroutine will be named accordingly, referenced by the appropriate glob. <code>name</code> is a string of length <code>len</code> bytes giving a sigilless symbol name, in UTF-8 if <code>flags</code> has the <code>SVf_UTF8</code> bit set and in Latin-1 otherwise. The name may be either qualified or unqualified, with the stash defaulting in the same manner as for <code>gv_fetchpvn_flags</code>. <code>flags</code> may contain flag bits understood by <code>gv_fetchpvn_flags</code> with the same meaning as they have there, such as <code>GV_ADDWARN</code>. The symbol is always added to the stash if necessary, with <code>GV_ADDMULTI</code> semantics.</p>

<p>If there is already a subroutine of the specified name, then the new sub will replace the existing one in the glob. A warning may be generated about the redefinition. If the old subroutine was <code>CvCONST</code> then the decision about whether to warn is influenced by an expectation about whether the new subroutine will become a constant of similar value. That expectation is determined by <code>const_svp</code>. (Note that the call to this function doesn&#39;t make the new subroutine <code>CvCONST</code> in any case; that is left to the caller.) If <code>const_svp</code> is null then it indicates that the new subroutine will not become a constant. If <code>const_svp</code> is non-null then it indicates that the new subroutine will become a constant, and it points to an <code>SV*</code> that provides the constant value that the subroutine will have.</p>

<p>If the subroutine has one of a few special names, such as <code>BEGIN</code> or <code>END</code>, then it will be claimed by the appropriate queue for automatic running of phase-related subroutines. In this case the relevant glob will be left not containing any subroutine, even if it did contain one before. In the case of <code>BEGIN</code>, the subroutine will be executed and the reference to it disposed of before this function returns, and also before its prototype is set. If a <code>BEGIN</code> subroutine would not be sufficiently constructed by this function to be ready for execution then the caller must prevent this happening by giving the subroutine a different name.</p>

<p>The function returns a pointer to the constructed subroutine. If the sub is anonymous then ownership of one counted reference to the subroutine is transferred to the caller. If the sub is named then the caller does not get ownership of a reference. In most such cases, where the sub has a non-phase name, the sub will be alive at the point it is returned by virtue of being contained in the glob that names it. A phase-named subroutine will usually be alive by virtue of the reference owned by the phase&#39;s automatic run queue. But a <code>BEGIN</code> subroutine, having already been executed, will quite likely have been destroyed already by the time this function returns, making it erroneous for the caller to make any use of the returned pointer. It is the caller&#39;s responsibility to ensure that it knows which of these situations applies.</p>

<ul>

<pre><code class="plaintext">CV *  newXS_len_flags(const char *name, STRLEN len,
                      XSUBADDR_t subaddr,
                      const char *const filename,
                      const char *const proto, SV **const_svp,
                      U32 flags)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="optimize_optree"><a class="permalink" href="perlintern.html#optimize_optree">#</a><code>optimize_optree</code> </dt>
<dd>

<p>This function applies some optimisations to the optree in top-down order. It is called before the peephole optimizer, which processes ops in execution order. Note that finalize_optree() also does a top-down scan, but is called *after* the peephole optimizer.</p>

<ul>

<pre><code class="plaintext">void  optimize_optree(OP* o)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="traverse_op_tree"><a class="permalink" href="perlintern.html#traverse_op_tree">#</a><code>traverse_op_tree</code> </dt>
<dd>

<p>Return the next op in a depth-first traversal of the op tree, returning NULL when the traversal is complete.</p>

<p>The initial call must supply the root of the tree as both top and o.</p>

<p>For now it&#39;s static, but it may be exposed to the API in the future.</p>

<ul>

<pre><code class="plaintext">OP*  traverse_op_tree(OP* top, OP* o)</code></pre>

</ul>

</dd>
</dl>

<h1 id="Pack-and-Unpack"><a class="permalink" href="perlintern.html#Pack-and-Unpack">#</a><a id="Pack"></a>Pack and Unpack</h1>

<p>There are only public API items currently in Pack and Unpack</p>

<h1 id="Pad-Data-Structures"><a class="permalink" href="perlintern.html#Pad-Data-Structures">#</a><a id="Pad"></a>Pad Data Structures</h1>

<dl>

<dt id="CX_CURPAD_SAVE"><a class="permalink" href="perlintern.html#CX_CURPAD_SAVE">#</a><code>CX_CURPAD_SAVE</code> </dt>
<dd>

<p>Save the current pad in the given context block structure.</p>

<ul>

<pre><code class="plaintext">void  CX_CURPAD_SAVE(struct context)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="CX_CURPAD_SV"><a class="permalink" href="perlintern.html#CX_CURPAD_SV">#</a><code>CX_CURPAD_SV</code> </dt>
<dd>

<p>Access the SV at offset <code>po</code> in the saved current pad in the given context block structure (can be used as an lvalue).</p>

<ul>

<pre><code class="plaintext">SV *  CX_CURPAD_SV(struct context, PADOFFSET po)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PAD_BASE_SV"><a class="permalink" href="perlintern.html#PAD_BASE_SV">#</a><code>PAD_BASE_SV</code> </dt>
<dd>

<p>Get the value from slot <code>po</code> in the base (DEPTH=1) pad of a padlist</p>

<ul>

<pre><code class="plaintext">SV *  PAD_BASE_SV(PADLIST padlist, PADOFFSET po)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PAD_CLONE_VARS"><a class="permalink" href="perlintern.html#PAD_CLONE_VARS">#</a><code>PAD_CLONE_VARS</code> </dt>
<dd>

<p>Clone the state variables associated with running and compiling pads.</p>

<ul>

<pre><code class="plaintext">void  PAD_CLONE_VARS(PerlInterpreter *proto_perl,
                     CLONE_PARAMS* param)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PAD_COMPNAME_FLAGS"><a class="permalink" href="perlintern.html#PAD_COMPNAME_FLAGS">#</a><code>PAD_COMPNAME_FLAGS</code> </dt>
<dd>

<p>Return the flags for the current compiling pad name at offset <code>po</code>. Assumes a valid slot entry.</p>

<ul>

<pre><code class="plaintext">U32  PAD_COMPNAME_FLAGS(PADOFFSET po)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PAD_COMPNAME_GEN"><a class="permalink" href="perlintern.html#PAD_COMPNAME_GEN">#</a><code>PAD_COMPNAME_GEN</code> </dt>
<dd>

<p>The generation number of the name at offset <code>po</code> in the current compiling pad (lvalue).</p>

<ul>

<pre><code class="plaintext">STRLEN  PAD_COMPNAME_GEN(PADOFFSET po)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PAD_COMPNAME_GEN_set"><a class="permalink" href="perlintern.html#PAD_COMPNAME_GEN_set">#</a><code>PAD_COMPNAME_GEN_set</code> </dt>
<dd>

<p>Sets the generation number of the name at offset <code>po</code> in the current ling pad (lvalue) to <code>gen</code>.</p>

<ul>

<pre><code class="plaintext">STRLEN  PAD_COMPNAME_GEN_set(PADOFFSET po, int gen)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PAD_COMPNAME_OURSTASH"><a class="permalink" href="perlintern.html#PAD_COMPNAME_OURSTASH">#</a><code>PAD_COMPNAME_OURSTASH</code> </dt>
<dd>

<p>Return the stash associated with an <code>our</code> variable. Assumes the slot entry is a valid <code>our</code> lexical.</p>

<ul>

<pre><code class="plaintext">HV *  PAD_COMPNAME_OURSTASH(PADOFFSET po)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PAD_COMPNAME_PV"><a class="permalink" href="perlintern.html#PAD_COMPNAME_PV">#</a><code>PAD_COMPNAME_PV</code> </dt>
<dd>

<p>Return the name of the current compiling pad name at offset <code>po</code>. Assumes a valid slot entry.</p>

<ul>

<pre><code class="plaintext">char *  PAD_COMPNAME_PV(PADOFFSET po)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PAD_COMPNAME_TYPE"><a class="permalink" href="perlintern.html#PAD_COMPNAME_TYPE">#</a><code>PAD_COMPNAME_TYPE</code> </dt>
<dd>

<p>Return the type (stash) of the current compiling pad name at offset <code>po</code>. Must be a valid name. Returns null if not typed.</p>

<ul>

<pre><code class="plaintext">HV *  PAD_COMPNAME_TYPE(PADOFFSET po)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PadnameIsOUR"><a class="permalink" href="perlintern.html#PadnameIsOUR">#</a><code>PadnameIsOUR</code> </dt>
<dd>

<p>Whether this is an &quot;our&quot; variable.</p>

<ul>

<pre><code class="plaintext">bool  PadnameIsOUR(PADNAME * pn)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PadnameIsSTATE"><a class="permalink" href="perlintern.html#PadnameIsSTATE">#</a><code>PadnameIsSTATE</code> </dt>
<dd>

<p>Whether this is a &quot;state&quot; variable.</p>

<ul>

<pre><code class="plaintext">bool  PadnameIsSTATE(PADNAME * pn)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PadnameOURSTASH"><a class="permalink" href="perlintern.html#PadnameOURSTASH">#</a><code>PadnameOURSTASH</code> </dt>
<dd>

<p>The stash in which this &quot;our&quot; variable was declared.</p>

<ul>

<pre><code class="plaintext">HV *  PadnameOURSTASH(PADNAME * pn)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PadnameOUTER"><a class="permalink" href="perlintern.html#PadnameOUTER">#</a><code>PadnameOUTER</code> </dt>
<dd>

<p>Whether this entry belongs to an outer pad. Entries for which this is true are often referred to as &#39;fake&#39;.</p>

<ul>

<pre><code class="plaintext">bool  PadnameOUTER(PADNAME * pn)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PadnameTYPE"><a class="permalink" href="perlintern.html#PadnameTYPE">#</a><code>PadnameTYPE</code> </dt>
<dd>

<p>The stash associated with a typed lexical. This returns the <code>%Foo::</code> hash for <code>my Foo $bar</code>.</p>

<ul>

<pre><code class="plaintext">HV *  PadnameTYPE(PADNAME * pn)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PAD_RESTORE_LOCAL"><a class="permalink" href="perlintern.html#PAD_RESTORE_LOCAL">#</a><code>PAD_RESTORE_LOCAL</code> </dt>
<dd>

<p>Restore the old pad saved into the local variable <code>opad</code> by <code>PAD_SAVE_LOCAL()</code></p>

<ul>

<pre><code class="plaintext">void  PAD_RESTORE_LOCAL(PAD *opad)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PAD_SAVE_LOCAL"><a class="permalink" href="perlintern.html#PAD_SAVE_LOCAL">#</a><code>PAD_SAVE_LOCAL</code> </dt>
<dd>

<p>Save the current pad to the local variable <code>opad</code>, then make the current pad equal to <code>npad</code></p>

<ul>

<pre><code class="plaintext">void  PAD_SAVE_LOCAL(PAD *opad, PAD *npad)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PAD_SAVE_SETNULLPAD"><a class="permalink" href="perlintern.html#PAD_SAVE_SETNULLPAD">#</a><code>PAD_SAVE_SETNULLPAD</code> </dt>
<dd>

<p>Save the current pad then set it to null.</p>

<ul>

<pre><code class="plaintext">void  PAD_SAVE_SETNULLPAD()</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PAD_SETSV"><a class="permalink" href="perlintern.html#PAD_SETSV">#</a><code>PAD_SETSV</code> </dt>
<dd>

<p>Set the slot at offset <code>po</code> in the current pad to <code>sv</code></p>

<ul>

<pre><code class="plaintext">SV *  PAD_SETSV(PADOFFSET po, SV* sv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PAD_SET_CUR"><a class="permalink" href="perlintern.html#PAD_SET_CUR">#</a><code>PAD_SET_CUR</code> </dt>
<dd>

<p>Set the current pad to be pad <code>n</code> in the padlist, saving the previous current pad. NB currently this macro expands to a string too long for some compilers, so it&#39;s best to replace it with</p>

<pre><code>SAVECOMPPAD();
PAD_SET_CUR_NOSAVE(padlist,n);</code></pre>

<ul>

<pre><code class="plaintext">void  PAD_SET_CUR(PADLIST padlist, I32 n)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PAD_SET_CUR_NOSAVE"><a class="permalink" href="perlintern.html#PAD_SET_CUR_NOSAVE">#</a><code>PAD_SET_CUR_NOSAVE</code> </dt>
<dd>

<p>like PAD_SET_CUR, but without the save</p>

<ul>

<pre><code class="plaintext">void  PAD_SET_CUR_NOSAVE(PADLIST padlist, I32 n)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PAD_SV"><a class="permalink" href="perlintern.html#PAD_SV">#</a><code>PAD_SV</code> </dt>
<dd>

<p>Get the value at offset <code>po</code> in the current pad</p>

<ul>

<pre><code class="plaintext">SV *  PAD_SV(PADOFFSET po)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="PAD_SVl"><a class="permalink" href="perlintern.html#PAD_SVl">#</a><code>PAD_SVl</code> </dt>
<dd>

<p>Lightweight and lvalue version of <code>PAD_SV</code>. Get or set the value at offset <code>po</code> in the current pad. Unlike <code>PAD_SV</code>, does not print diagnostics with -DX. For internal use only.</p>

<ul>

<pre><code class="plaintext">SV *  PAD_SVl(PADOFFSET po)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="SAVECLEARSV"><a class="permalink" href="perlintern.html#SAVECLEARSV">#</a><code>SAVECLEARSV</code> </dt>
<dd>

<p>Clear the pointed to pad value on scope exit. (i.e. the runtime action of <code>my</code>)</p>

<ul>

<pre><code class="plaintext">void  SAVECLEARSV(SV **svp)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="SAVECOMPPAD"><a class="permalink" href="perlintern.html#SAVECOMPPAD">#</a><code>SAVECOMPPAD</code> </dt>
<dd>

<p>save <code>PL_comppad</code> and <code>PL_curpad</code></p>

<ul>

<pre><code class="plaintext">void  SAVECOMPPAD()</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="SAVEPADSV"><a class="permalink" href="perlintern.html#SAVEPADSV">#</a><code>SAVEPADSV</code> </dt>
<dd>

<p>Save a pad slot (used to restore after an iteration)</p>

<ul>

<pre><code class="plaintext">void  SAVEPADSV(PADOFFSET po)</code></pre>

</ul>

</dd>
</dl>

<h1 id="Password-and-Group-access"><a class="permalink" href="perlintern.html#Password-and-Group-access">#</a><a id="Password"></a>Password and Group access</h1>

<p>There are only public API items currently in Password and Group access</p>

<h1 id="Paths-to-system-commands"><a class="permalink" href="perlintern.html#Paths-to-system-commands">#</a><a id="Paths"></a>Paths to system commands</h1>

<p>There are only public API items currently in Paths to system commands</p>

<h1 id="Prototype-information"><a class="permalink" href="perlintern.html#Prototype-information">#</a><a id="Prototype"></a>Prototype information</h1>

<p>There are only public API items currently in Prototype information</p>

<h1 id="REGEXP-Functions"><a class="permalink" href="perlintern.html#REGEXP-Functions">#</a><a id="REGEXP"></a>REGEXP Functions</h1>

<p>There are only public API items currently in REGEXP Functions</p>

<h1 id="Signals"><a class="permalink" href="perlintern.html#Signals">#</a>Signals</h1>

<p>There are only public API items currently in Signals</p>

<h1 id="Site-configuration"><a class="permalink" href="perlintern.html#Site-configuration">#</a><a id="Site"></a>Site configuration</h1>

<p>There are only public API items currently in Site configuration</p>

<h1 id="Sockets-configuration-values"><a class="permalink" href="perlintern.html#Sockets-configuration-values">#</a><a id="Sockets"></a>Sockets configuration values</h1>

<p>There are only public API items currently in Sockets configuration values</p>

<h1 id="Source-Filters"><a class="permalink" href="perlintern.html#Source-Filters">#</a><a id="Source"></a>Source Filters</h1>

<p>There are only public API items currently in Source Filters</p>

<h1 id="Stack-Manipulation-Macros"><a class="permalink" href="perlintern.html#Stack-Manipulation-Macros">#</a><a id="Stack"></a>Stack Manipulation Macros</h1>

<dl>

<dt id="djSP"><a class="permalink" href="perlintern.html#djSP">#</a><code>djSP</code> </dt>
<dd>

<p>Declare Just <code>SP</code>. This is actually identical to <code>dSP</code>, and declares a local copy of perl&#39;s stack pointer, available via the <code>SP</code> macro. See <code><a href="perlapi.html#SP">&quot;SP&quot; in perlapi</a></code>. (Available for backward source code compatibility with the old (Perl 5.005) thread model.)</p>

<ul>

<pre><code>djSP();</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="LVRET"><a class="permalink" href="perlintern.html#LVRET">#</a><code>LVRET</code> </dt>
<dd>

<p>True if this op will be the return value of an lvalue subroutine</p>

</dd>
</dl>

<h1 id="String-Handling"><a class="permalink" href="perlintern.html#String-Handling">#</a><a id="String"></a>String Handling</h1>

<dl>

<dt id="delimcpy_no_escape"><a class="permalink" href="perlintern.html#delimcpy_no_escape">#</a><code>delimcpy_no_escape</code> </dt>
<dd>

<p>Copy a source buffer to a destination buffer, stopping at (but not including) the first occurrence in the source of the delimiter byte, <code>delim</code>. The source is the bytes between <span style="white-space: nowrap;"><code>from</code> and <code>from_end</code> - 1</span>. Similarly, the dest is <code>to</code> up to <code>to_end</code>.</p>

<p>The number of bytes copied is written to <code>*retlen</code>.</p>

<p>Returns the position of <code>delim</code> in the <code>from</code> buffer, but if there is no such occurrence before <code>from_end</code>, then <code>from_end</code> is returned, and the entire buffer <span style="white-space: nowrap;"><code>from</code> .. <code>from_end</code> - 1</span> is copied.</p>

<p>If there is room in the destination available after the copy, an extra terminating safety <code>NUL</code> byte is appended (not included in the returned length).</p>

<p>The error case is if the destination buffer is not large enough to accommodate everything that should be copied. In this situation, a value larger than <span style="white-space: nowrap;"><code>to_end</code> - <code>to</code></span> is written to <code>*retlen</code>, and as much of the source as fits will be written to the destination. Not having room for the safety <code>NUL</code> is not considered an error.</p>

<ul>

<pre><code class="plaintext">char*  delimcpy_no_escape(char* to, const char* to_end,
                          const char* from, const char* from_end,
                          const int delim, I32* retlen)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="quadmath_format_needed"><a class="permalink" href="perlintern.html#quadmath_format_needed">#</a><code>quadmath_format_needed</code> </dt>
<dd>

<p><code>quadmath_format_needed()</code> returns true if the <code>format</code> string seems to contain at least one non-Q-prefixed <code>%[efgaEFGA]</code> format specifier, or returns false otherwise.</p>

<p>The format specifier detection is not complete printf-syntax detection, but it should catch most common cases.</p>

<p>If true is returned, those arguments <b>should</b> in theory be processed with <code>quadmath_snprintf()</code>, but in case there is more than one such format specifier (see <a href="perlintern.html#quadmath_format_valid">&quot;quadmath_format_valid&quot;</a>), and if there is anything else beyond that one (even just a single byte), they <b>cannot</b> be processed because <code>quadmath_snprintf()</code> is very strict, accepting only one format spec, and nothing else. In this case, the code should probably fail.</p>

<ul>

<pre><code class="plaintext">bool  quadmath_format_needed(const char* format)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="quadmath_format_valid"><a class="permalink" href="perlintern.html#quadmath_format_valid">#</a><code>quadmath_format_valid</code> </dt>
<dd>

<p><code>quadmath_snprintf()</code> is very strict about its <code>format</code> string and will fail, returning -1, if the format is invalid. It accepts exactly one format spec.</p>

<p><code>quadmath_format_valid()</code> checks that the intended single spec looks sane: begins with <code>%</code>, has only one <code>%</code>, ends with <code>[efgaEFGA]</code>, and has <code>Q</code> before it. This is not a full &quot;printf syntax check&quot;, just the basics.</p>

<p>Returns true if it is valid, false if not.</p>

<p>See also <a href="perlintern.html#quadmath_format_needed">&quot;quadmath_format_needed&quot;</a>.</p>

<ul>

<pre><code class="plaintext">bool  quadmath_format_valid(const char* format)</code></pre>

</ul>

</dd>
</dl>

<h1 id="SV-Flags"><a class="permalink" href="perlintern.html#SV-Flags">#</a><a id="SV"></a>SV Flags</h1>

<dl>

<dt id="SVt_INVLIST"><a class="permalink" href="perlintern.html#SVt_INVLIST">#</a><code>SVt_INVLIST</code> </dt>
<dd>

<p>Type flag for scalars. See <a href="perlapi.html#svtype">&quot;svtype&quot; in perlapi</a>.</p>

</dd>
</dl>

<h1 id="SV-Handling"><a class="permalink" href="perlintern.html#SV-Handling">#</a><a id="SV1"></a>SV Handling</h1>

<dl>

<dt id="PL_Sv"><a class="permalink" href="perlintern.html#PL_Sv">#</a><code>PL_Sv</code> </dt>
<dd>

<p>A scratch pad SV for whatever temporary use you need. Chiefly used as a fallback by macros on platforms where <a href="perlapi.html#PERL_USE_GCC_BRACE_GROUPS">&quot;PERL_USE_GCC_BRACE_GROUPS&quot; in perlapi</a>&gt; is unavailable, and which would otherwise evaluate their SV parameter more than once.</p>

<ul>

<pre><code class="plaintext">PL_Sv</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_2bool"><a class="permalink" href="perlintern.html#sv_2bool">#</a><code>sv_2bool</code> </dt>
<dd>

<p>This macro is only used by <code>sv_true()</code> or its macro equivalent, and only if the latter&#39;s argument is neither <code>SvPOK</code>, <code>SvIOK</code> nor <code>SvNOK</code>. It calls <code>sv_2bool_flags</code> with the <code>SV_GMAGIC</code> flag.</p>

<ul>

<pre><code class="plaintext">bool  sv_2bool(SV *const sv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_2bool_flags"><a class="permalink" href="perlintern.html#sv_2bool_flags">#</a><code>sv_2bool_flags</code> </dt>
<dd>

<p>This function is only used by <code>sv_true()</code> and friends, and only if the latter&#39;s argument is neither <code>SvPOK</code>, <code>SvIOK</code> nor <code>SvNOK</code>. If the flags contain <code>SV_GMAGIC</code>, then it does an <code>mg_get()</code> first.</p>

<ul>

<pre><code class="plaintext">bool  sv_2bool_flags(SV *sv, I32 flags)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_2num"><a class="permalink" href="perlintern.html#sv_2num">#</a><code>sv_2num</code> </dt>
<dd>

<p>NOTE: <code>sv_2num</code> is <b>experimental</b> and may change or be removed without notice.</p>

<p>Return an SV with the numeric value of the source SV, doing any necessary reference or overload conversion. The caller is expected to have handled get-magic already.</p>

<ul>

<pre><code class="plaintext">SV*  sv_2num(SV *const sv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_2pvbyte_nolen"><a class="permalink" href="perlintern.html#sv_2pvbyte_nolen">#</a><code>sv_2pvbyte_nolen</code> </dt>
<dd>

<p>Return a pointer to the byte-encoded representation of the SV. May cause the SV to be downgraded from UTF-8 as a side-effect.</p>

<p>Usually accessed via the <code>SvPVbyte_nolen</code> macro.</p>

<ul>

<pre><code class="plaintext">char*  sv_2pvbyte_nolen(SV* sv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_2pvutf8_nolen"><a class="permalink" href="perlintern.html#sv_2pvutf8_nolen">#</a><code>sv_2pvutf8_nolen</code> </dt>
<dd>

<p>Return a pointer to the UTF-8-encoded representation of the SV. May cause the SV to be upgraded to UTF-8 as a side-effect.</p>

<p>Usually accessed via the <code>SvPVutf8_nolen</code> macro.</p>

<ul>

<pre><code class="plaintext">char*  sv_2pvutf8_nolen(SV* sv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_2pv_flags"><a class="permalink" href="perlintern.html#sv_2pv_flags">#</a><code>sv_2pv_flags</code> </dt>
<dd>

<p>Returns a pointer to the string value of an SV, and sets <code>*lp</code> to its length. If flags has the <code>SV_GMAGIC</code> bit set, does an <code>mg_get()</code> first. Coerces <code>sv</code> to a string if necessary. Normally invoked via the <code>SvPV_flags</code> macro. <code>sv_2pv()</code> and <code>sv_2pv_nomg</code> usually end up here too.</p>

<ul>

<pre><code class="plaintext">char*  sv_2pv_flags(SV *const sv, STRLEN *const lp,
                    const U32 flags)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_2pv_nolen"><a class="permalink" href="perlintern.html#sv_2pv_nolen">#</a><code>sv_2pv_nolen</code> </dt>
<dd>

<p>Like <code>sv_2pv()</code>, but doesn&#39;t return the length too. You should usually use the macro wrapper <code>SvPV_nolen(sv)</code> instead.</p>

<ul>

<pre><code class="plaintext">char*  sv_2pv_nolen(SV* sv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_add_arena"><a class="permalink" href="perlintern.html#sv_add_arena">#</a><code>sv_add_arena</code> </dt>
<dd>

<p>Given a chunk of memory, link it to the head of the list of arenas, and split it into a list of free SVs.</p>

<ul>

<pre><code class="plaintext">void  sv_add_arena(char *const ptr, const U32 size,
                   const U32 flags)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_clean_all"><a class="permalink" href="perlintern.html#sv_clean_all">#</a><code>sv_clean_all</code> </dt>
<dd>

<p>Decrement the refcnt of each remaining SV, possibly triggering a cleanup. This function may have to be called multiple times to free SVs which are in complex self-referential hierarchies.</p>

<ul>

<pre><code class="plaintext">I32  sv_clean_all()</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_clean_objs"><a class="permalink" href="perlintern.html#sv_clean_objs">#</a><code>sv_clean_objs</code> </dt>
<dd>

<p>Attempt to destroy all objects not yet freed.</p>

<ul>

<pre><code class="plaintext">void  sv_clean_objs()</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_free_arenas"><a class="permalink" href="perlintern.html#sv_free_arenas">#</a><code>sv_free_arenas</code> </dt>
<dd>

<p>Deallocate the memory used by all arenas. Note that all the individual SV heads and bodies within the arenas must already have been freed.</p>

<ul>

<pre><code class="plaintext">void  sv_free_arenas()</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_grow"><a class="permalink" href="perlintern.html#sv_grow">#</a><code>sv_grow</code> </dt>
<dd>

<p>Expands the character buffer in the SV. If necessary, uses <code>sv_unref</code> and upgrades the SV to <code>SVt_PV</code>. Returns a pointer to the character buffer. Use the <code>SvGROW</code> wrapper instead.</p>

<ul>

<pre><code class="plaintext">char*  sv_grow(SV *const sv, STRLEN newlen)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_iv"><a class="permalink" href="perlintern.html#sv_iv">#</a><code>sv_iv</code> </dt>
<dd>

<p><code><b>DEPRECATED!</b></code> It is planned to remove <code>sv_iv</code> from a future release of Perl. Do not use it for new code; remove it from existing code.</p>

<p>A private implementation of the <code>SvIVx</code> macro for compilers which can&#39;t cope with complex macro expressions. Always use the macro instead.</p>

<ul>

<pre><code class="plaintext">IV  sv_iv(SV* sv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_newref"><a class="permalink" href="perlintern.html#sv_newref">#</a><code>sv_newref</code> </dt>
<dd>

<p>Increment an SV&#39;s reference count. Use the <code>SvREFCNT_inc()</code> wrapper instead.</p>

<ul>

<pre><code class="plaintext">SV*  sv_newref(SV *const sv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_nv"><a class="permalink" href="perlintern.html#sv_nv">#</a><code>sv_nv</code> </dt>
<dd>

<p><code><b>DEPRECATED!</b></code> It is planned to remove <code>sv_nv</code> from a future release of Perl. Do not use it for new code; remove it from existing code.</p>

<p>A private implementation of the <code>SvNVx</code> macro for compilers which can&#39;t cope with complex macro expressions. Always use the macro instead.</p>

<ul>

<pre><code class="plaintext">NV  sv_nv(SV* sv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_pv"><a class="permalink" href="perlintern.html#sv_pv">#</a><code>sv_pv</code> </dt>
<dd>

<p>Use the <code>SvPV_nolen</code> macro instead</p>

<ul>

<pre><code class="plaintext">char*  sv_pv(SV *sv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_pvbyte"><a class="permalink" href="perlintern.html#sv_pvbyte">#</a><code>sv_pvbyte</code> </dt>
<dd>

<p>Use <code>SvPVbyte_nolen</code> instead.</p>

<ul>

<pre><code class="plaintext">char*  sv_pvbyte(SV *sv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_pvbyten"><a class="permalink" href="perlintern.html#sv_pvbyten">#</a><code>sv_pvbyten</code> </dt>
<dd>

<p><code><b>DEPRECATED!</b></code> It is planned to remove <code>sv_pvbyten</code> from a future release of Perl. Do not use it for new code; remove it from existing code.</p>

<p>A private implementation of the <code>SvPVbyte</code> macro for compilers which can&#39;t cope with complex macro expressions. Always use the macro instead.</p>

<ul>

<pre><code class="plaintext">char*  sv_pvbyten(SV *sv, STRLEN *lp)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_pvbyten_force"><a class="permalink" href="perlintern.html#sv_pvbyten_force">#</a><code>sv_pvbyten_force</code> </dt>
<dd>

<p>The backend for the <code>SvPVbytex_force</code> macro. Always use the macro instead. If the SV cannot be downgraded from UTF-8, this croaks.</p>

<ul>

<pre><code class="plaintext">char*  sv_pvbyten_force(SV *const sv, STRLEN *const lp)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_pvn"><a class="permalink" href="perlintern.html#sv_pvn">#</a><code>sv_pvn</code> </dt>
<dd>

<p><code><b>DEPRECATED!</b></code> It is planned to remove <code>sv_pvn</code> from a future release of Perl. Do not use it for new code; remove it from existing code.</p>

<p>A private implementation of the <code>SvPV</code> macro for compilers which can&#39;t cope with complex macro expressions. Always use the macro instead.</p>

<ul>

<pre><code class="plaintext">char*  sv_pvn(SV *sv, STRLEN *lp)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_pvn_force"><a class="permalink" href="perlintern.html#sv_pvn_force">#</a><code>sv_pvn_force</code> </dt>
<dd>

<p>Get a sensible string out of the SV somehow. A private implementation of the <code>SvPV_force</code> macro for compilers which can&#39;t cope with complex macro expressions. Always use the macro instead.</p>

<ul>

<pre><code class="plaintext">char*  sv_pvn_force(SV* sv, STRLEN* lp)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_pvutf8"><a class="permalink" href="perlintern.html#sv_pvutf8">#</a><code>sv_pvutf8</code> </dt>
<dd>

<p>Use the <code>SvPVutf8_nolen</code> macro instead</p>

<ul>

<pre><code class="plaintext">char*  sv_pvutf8(SV *sv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_pvutf8n"><a class="permalink" href="perlintern.html#sv_pvutf8n">#</a><code>sv_pvutf8n</code> </dt>
<dd>

<p><code><b>DEPRECATED!</b></code> It is planned to remove <code>sv_pvutf8n</code> from a future release of Perl. Do not use it for new code; remove it from existing code.</p>

<p>A private implementation of the <code>SvPVutf8</code> macro for compilers which can&#39;t cope with complex macro expressions. Always use the macro instead.</p>

<ul>

<pre><code class="plaintext">char*  sv_pvutf8n(SV *sv, STRLEN *lp)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_pvutf8n_force"><a class="permalink" href="perlintern.html#sv_pvutf8n_force">#</a><code>sv_pvutf8n_force</code> </dt>
<dd>

<p>The backend for the <code>SvPVutf8x_force</code> macro. Always use the macro instead.</p>

<ul>

<pre><code class="plaintext">char*  sv_pvutf8n_force(SV *const sv, STRLEN *const lp)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_taint"><a class="permalink" href="perlintern.html#sv_taint">#</a><code>sv_taint</code> </dt>
<dd>

<p>Taint an SV. Use <code>SvTAINTED_on</code> instead.</p>

<ul>

<pre><code class="plaintext">void  sv_taint(SV* sv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_tainted"><a class="permalink" href="perlintern.html#sv_tainted">#</a><code>sv_tainted</code> </dt>
<dd>

<p>Test an SV for taintedness. Use <code>SvTAINTED</code> instead.</p>

<ul>

<pre><code class="plaintext">bool  sv_tainted(SV *const sv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="SvTHINKFIRST"><a class="permalink" href="perlintern.html#SvTHINKFIRST">#</a><code>SvTHINKFIRST</code> </dt>
<dd>

<p>A quick flag check to see whether an <code>sv</code> should be passed to <code>sv_force_normal</code> to be &quot;downgraded&quot; before <code>SvIVX</code> or <code>SvPVX</code> can be modified directly.</p>

<p>For example, if your scalar is a reference and you want to modify the <code>SvIVX</code> slot, you can&#39;t just do <code>SvROK_off</code>, as that will leak the referent.</p>

<p>This is used internally by various sv-modifying functions, such as <code>sv_setsv</code>, <code>sv_setiv</code> and <code>sv_pvn_force</code>.</p>

<p>One case that this does not handle is a gv without SvFAKE set. After</p>

<pre><code>if (SvTHINKFIRST(gv)) sv_force_normal(gv);</code></pre>

<p>it will still be a gv.</p>

<p><code>SvTHINKFIRST</code> sometimes produces false positives. In those cases <code>sv_force_normal</code> does nothing.</p>

<ul>

<pre><code class="plaintext">U32  SvTHINKFIRST(SV *sv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_true"><a class="permalink" href="perlintern.html#sv_true">#</a><code>sv_true</code> </dt>
<dd>

<p>Returns true if the SV has a true value by Perl&#39;s rules. Use the <code>SvTRUE</code> macro instead, which may call <code>sv_true()</code> or may instead use an in-line version.</p>

<ul>

<pre><code class="plaintext">I32  sv_true(SV *const sv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_untaint"><a class="permalink" href="perlintern.html#sv_untaint">#</a><code>sv_untaint</code> </dt>
<dd>

<p>Untaint an SV. Use <code>SvTAINTED_off</code> instead.</p>

<ul>

<pre><code class="plaintext">void  sv_untaint(SV *const sv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="sv_uv"><a class="permalink" href="perlintern.html#sv_uv">#</a><code>sv_uv</code> </dt>
<dd>

<p><code><b>DEPRECATED!</b></code> It is planned to remove <code>sv_uv</code> from a future release of Perl. Do not use it for new code; remove it from existing code.</p>

<p>A private implementation of the <code>SvUVx</code> macro for compilers which can&#39;t cope with complex macro expressions. Always use the macro instead.</p>

<ul>

<pre><code class="plaintext">UV  sv_uv(SV* sv)</code></pre>

</ul>

</dd>
</dl>

<h1 id="Time"><a class="permalink" href="perlintern.html#Time">#</a>Time</h1>

<p>There are only public API items currently in Time</p>

<h1 id="Typedef-names"><a class="permalink" href="perlintern.html#Typedef-names">#</a><a id="Typedef"></a>Typedef names</h1>

<p>There are only public API items currently in Typedef names</p>

<h1 id="Unicode-Support"><a class="permalink" href="perlintern.html#Unicode-Support">#</a><a id="Unicode"></a>Unicode Support</h1>

<dl>

<dt id="bytes_from_utf8_loc"><a class="permalink" href="perlintern.html#bytes_from_utf8_loc">#</a><code>bytes_from_utf8_loc</code> </dt>
<dd>

<p>NOTE: <code>bytes_from_utf8_loc</code> is <b>experimental</b> and may change or be removed without notice.</p>

<p>Like <code><a href="perlapi.html#bytes_from_utf8">&quot;bytes_from_utf8&quot; in perlapi</a>()</code>, but takes an extra parameter, a pointer to where to store the location of the first character in <code>&quot;s&quot;</code> that cannot be converted to non-UTF8.</p>

<p>If that parameter is <code>NULL</code>, this function behaves identically to <code>bytes_from_utf8</code>.</p>

<p>Otherwise if <code>*is_utf8p</code> is 0 on input, the function behaves identically to <code>bytes_from_utf8</code>, except it also sets <code>*first_non_downgradable</code> to <code>NULL</code>.</p>

<p>Otherwise, the function returns a newly created <code>NUL</code>-terminated string containing the non-UTF8 equivalent of the convertible first portion of <code>&quot;s&quot;</code>. <code>*lenp</code> is set to its length, not including the terminating <code>NUL</code>. If the entire input string was converted, <code>*is_utf8p</code> is set to a FALSE value, and <code>*first_non_downgradable</code> is set to <code>NULL</code>.</p>

<p>Otherwise, <code>*first_non_downgradable</code> is set to point to the first byte of the first character in the original string that wasn&#39;t converted. <code>*is_utf8p</code> is unchanged. Note that the new string may have length 0.</p>

<p>Another way to look at it is, if <code>*first_non_downgradable</code> is non-<code>NULL</code> and <code>*is_utf8p</code> is TRUE, this function starts at the beginning of <code>&quot;s&quot;</code> and converts as many characters in it as possible stopping at the first one it finds that can&#39;t be converted to non-UTF-8. <code>*first_non_downgradable</code> is set to point to that. The function returns the portion that could be converted in a newly created <code>NUL</code>-terminated string, and <code>*lenp</code> is set to its length, not including the terminating <code>NUL</code>. If the very first character in the original could not be converted, <code>*lenp</code> will be 0, and the new string will contain just a single <code>NUL</code>. If the entire input string was converted, <code>*is_utf8p</code> is set to FALSE and <code>*first_non_downgradable</code> is set to <code>NULL</code>.</p>

<p>Upon successful return, the number of variants in the converted portion of the string can be computed by having saved the value of <code>*lenp</code> before the call, and subtracting the after-call value of <code>*lenp</code> from it.</p>

<ul>

<pre><code class="plaintext">U8*  bytes_from_utf8_loc(const U8 *s, STRLEN *lenp,
                         bool *is_utf8p,
                         const U8 ** first_unconverted)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="find_uninit_var"><a class="permalink" href="perlintern.html#find_uninit_var">#</a><code>find_uninit_var</code> </dt>
<dd>

<p>NOTE: <code>find_uninit_var</code> is <b>experimental</b> and may change or be removed without notice.</p>

<p>Find the name of the undefined variable (if any) that caused the operator to issue a &quot;Use of uninitialized value&quot; warning. If match is true, only return a name if its value matches <code>uninit_sv</code>. So roughly speaking, if a unary operator (such as <code>OP_COS</code>) generates a warning, then following the direct child of the op may yield an <code>OP_PADSV</code> or <code>OP_GV</code> that gives the name of the undefined variable. On the other hand, with <code>OP_ADD</code> there are two branches to follow, so we only print the variable name if we get an exact match. <code>desc_p</code> points to a string pointer holding the description of the op. This may be updated if needed.</p>

<p>The name is returned as a mortal SV.</p>

<p>Assumes that <code>PL_op</code> is the OP that originally triggered the error, and that <code>PL_comppad</code>/<code>PL_curpad</code> points to the currently executing pad.</p>

<ul>

<pre><code class="plaintext">SV*  find_uninit_var(const OP *const obase,
                     const SV *const uninit_sv, bool match,
                     const char **desc_p)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="isSCRIPT_RUN"><a class="permalink" href="perlintern.html#isSCRIPT_RUN">#</a><code>isSCRIPT_RUN</code> </dt>
<dd>

<p>Returns a bool as to whether or not the sequence of bytes from <code>s</code> up to but not including <code>send</code> form a &quot;script run&quot;. <code>utf8_target</code> is TRUE iff the sequence starting at <code>s</code> is to be treated as UTF-8. To be precise, except for two degenerate cases given below, this function returns TRUE iff all code points in it come from any combination of three &quot;scripts&quot; given by the Unicode &quot;Script Extensions&quot; property: Common, Inherited, and possibly one other. Additionally all decimal digits must come from the same consecutive sequence of 10.</p>

<p>For example, if all the characters in the sequence are Greek, or Common, or Inherited, this function will return TRUE, provided any decimal digits in it are from the same block of digits in Common. (These are the ASCII digits &quot;0&quot;..&quot;9&quot; and additionally a block for full width forms of these, and several others used in mathematical notation.) For scripts (unlike Greek) that have their own digits defined this will accept either digits from that set or from one of the Common digit sets, but not a combination of the two. Some scripts, such as Arabic, have more than one set of digits. All digits must come from the same set for this function to return TRUE.</p>

<p><code>*ret_script</code>, if <code>ret_script</code> is not NULL, will on return of TRUE contain the script found, using the <code>SCX_enum</code> typedef. Its value will be <code>SCX_INVALID</code> if the function returns FALSE.</p>

<p>If the sequence is empty, TRUE is returned, but <code>*ret_script</code> (if asked for) will be <code>SCX_INVALID</code>.</p>

<p>If the sequence contains a single code point which is unassigned to a character in the version of Unicode being used, the function will return TRUE, and the script will be <code>SCX_Unknown</code>. Any other combination of unassigned code points in the input sequence will result in the function treating the input as not being a script run.</p>

<p>The returned script will be <code>SCX_Inherited</code> iff all the code points in it are from the Inherited script.</p>

<p>Otherwise, the returned script will be <code>SCX_Common</code> iff all the code points in it are from the Inherited or Common scripts.</p>

<ul>

<pre><code class="plaintext">bool  isSCRIPT_RUN(const U8 *s, const U8 *send,
                   const bool utf8_target)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="is_utf8_non_invariant_string"><a class="permalink" href="perlintern.html#is_utf8_non_invariant_string">#</a><code>is_utf8_non_invariant_string</code> </dt>
<dd>

<p>Returns TRUE if <a href="perlapi.html#is_utf8_invariant_string">&quot;is_utf8_invariant_string&quot; in perlapi</a> returns FALSE for the first <code>len</code> bytes of the string <code>s</code>, but they are, nonetheless, legal Perl-extended UTF-8; otherwise returns FALSE.</p>

<p>A TRUE return means that at least one code point represented by the sequence either is a wide character not representable as a single byte, or the representation differs depending on whether the sequence is encoded in UTF-8 or not.</p>

<p>See also <code><a href="perlapi.html#is_utf8_invariant_string">&quot;is_utf8_invariant_string&quot; in perlapi</a></code>, <code><a href="perlapi.html#is_utf8_string">&quot;is_utf8_string&quot; in perlapi</a></code></p>

<ul>

<pre><code class="plaintext">bool  is_utf8_non_invariant_string(const U8* const s, STRLEN len)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="report_uninit"><a class="permalink" href="perlintern.html#report_uninit">#</a><code>report_uninit</code> </dt>
<dd>

<p>Print appropriate &quot;Use of uninitialized variable&quot; warning.</p>

<ul>

<pre><code class="plaintext">void  report_uninit(const SV *uninit_sv)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="utf8n_to_uvuni"><a class="permalink" href="perlintern.html#utf8n_to_uvuni">#</a><code>utf8n_to_uvuni</code> </dt>
<dd>

<p><code><b>DEPRECATED!</b></code> It is planned to remove <code>utf8n_to_uvuni</code> from a future release of Perl. Do not use it for new code; remove it from existing code.</p>

<p>Instead use <a href="perlapi.html#utf8_to_uvchr_buf">&quot;utf8_to_uvchr_buf&quot; in perlapi</a>, or rarely, <a href="perlapi.html#utf8n_to_uvchr">&quot;utf8n_to_uvchr&quot; in perlapi</a>.</p>

<p>This function was useful for code that wanted to handle both EBCDIC and ASCII platforms with Unicode properties, but starting in Perl v5.20, the distinctions between the platforms have mostly been made invisible to most code, so this function is quite unlikely to be what you want. If you do need this precise functionality, use instead <code><a href="perlapi.html#utf8_to_uvchr_buf">NATIVE_TO_UNI(utf8_to_uvchr_buf(...))</a></code> or <code><a href="perlapi.html#utf8n_to_uvchr">NATIVE_TO_UNI(utf8n_to_uvchr(...))</a></code>.</p>

<ul>

<pre><code class="plaintext">UV  utf8n_to_uvuni(const U8 *s, STRLEN curlen, STRLEN *retlen,
                   U32 flags)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="utf8_to_uvuni"><a class="permalink" href="perlintern.html#utf8_to_uvuni">#</a><code>utf8_to_uvuni</code> </dt>
<dd>

<p><code><b>DEPRECATED!</b></code> It is planned to remove <code>utf8_to_uvuni</code> from a future release of Perl. Do not use it for new code; remove it from existing code.</p>

<p>Returns the Unicode code point of the first character in the string <code>s</code> which is assumed to be in UTF-8 encoding; <code>retlen</code> will be set to the length, in bytes, of that character.</p>

<p>Some, but not all, UTF-8 malformations are detected, and in fact, some malformed input could cause reading beyond the end of the input buffer, which is one reason why this function is deprecated. The other is that only in extremely limited circumstances should the Unicode versus native code point be of any interest to you. See <a href="perlintern.html#utf8_to_uvuni_buf">&quot;utf8_to_uvuni_buf&quot;</a> for alternatives.</p>

<p>If <code>s</code> points to one of the detected malformations, and UTF8 warnings are enabled, zero is returned and <code>*retlen</code> is set (if <code>retlen</code> doesn&#39;t point to NULL) to -1. If those warnings are off, the computed value if well-defined (or the Unicode REPLACEMENT CHARACTER, if not) is silently returned, and <code>*retlen</code> is set (if <code>retlen</code> isn&#39;t NULL) so that (<span style="white-space: nowrap;"><code>s</code> + <code>*retlen</code></span>) is the next possible position in <code>s</code> that could begin a non-malformed character. See <a href="perlapi.html#utf8n_to_uvchr">&quot;utf8n_to_uvchr&quot; in perlapi</a> for details on when the REPLACEMENT CHARACTER is returned.</p>

<ul>

<pre><code class="plaintext">UV  utf8_to_uvuni(const U8 *s, STRLEN *retlen)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="utf8_to_uvuni_buf"><a class="permalink" href="perlintern.html#utf8_to_uvuni_buf">#</a><code>utf8_to_uvuni_buf</code> </dt>
<dd>

<p><code><b>DEPRECATED!</b></code> It is planned to remove <code>utf8_to_uvuni_buf</code> from a future release of Perl. Do not use it for new code; remove it from existing code.</p>

<p>Only in very rare circumstances should code need to be dealing in Unicode (as opposed to native) code points. In those few cases, use <code><a href="perlapi.html#utf8_to_uvchr_buf">NATIVE_TO_UNI(utf8_to_uvchr_buf(...))</a></code> instead. If you are not absolutely sure this is one of those cases, then assume it isn&#39;t and use plain <code>utf8_to_uvchr_buf</code> instead.</p>

<p>Returns the Unicode (not-native) code point of the first character in the string <code>s</code> which is assumed to be in UTF-8 encoding; <code>send</code> points to 1 beyond the end of <code>s</code>. <code>retlen</code> will be set to the length, in bytes, of that character.</p>

<p>If <code>s</code> does not point to a well-formed UTF-8 character and UTF8 warnings are enabled, zero is returned and <code>*retlen</code> is set (if <code>retlen</code> isn&#39;t NULL) to -1. If those warnings are off, the computed value if well-defined (or the Unicode REPLACEMENT CHARACTER, if not) is silently returned, and <code>*retlen</code> is set (if <code>retlen</code> isn&#39;t NULL) so that (<span style="white-space: nowrap;"><code>s</code> + <code>*retlen</code></span>) is the next possible position in <code>s</code> that could begin a non-malformed character. See <a href="perlapi.html#utf8n_to_uvchr">&quot;utf8n_to_uvchr&quot; in perlapi</a> for details on when the REPLACEMENT CHARACTER is returned.</p>

<ul>

<pre><code class="plaintext">UV  utf8_to_uvuni_buf(const U8 *s, const U8 *send, STRLEN *retlen)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="uvoffuni_to_utf8_flags"><a class="permalink" href="perlintern.html#uvoffuni_to_utf8_flags">#</a><code>uvoffuni_to_utf8_flags</code> </dt>
<dd>

<p>THIS FUNCTION SHOULD BE USED IN ONLY VERY SPECIALIZED CIRCUMSTANCES. Instead, <b>Almost all code should use <a href="perlapi.html#uvchr_to_utf8">&quot;uvchr_to_utf8&quot; in perlapi</a> or <a href="perlapi.html#uvchr_to_utf8_flags">&quot;uvchr_to_utf8_flags&quot; in perlapi</a></b>.</p>

<p>This function is like them, but the input is a strict Unicode (as opposed to native) code point. Only in very rare circumstances should code not be using the native code point.</p>

<p>For details, see the description for <a href="perlapi.html#uvchr_to_utf8_flags">&quot;uvchr_to_utf8_flags&quot; in perlapi</a>.</p>

<ul>

<pre><code class="plaintext">U8*  uvoffuni_to_utf8_flags(U8 *d, UV uv, const UV flags)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="uvuni_to_utf8_flags"><a class="permalink" href="perlintern.html#uvuni_to_utf8_flags">#</a><code>uvuni_to_utf8_flags</code> </dt>
<dd>

<p><code><b>DEPRECATED!</b></code> It is planned to remove <code>uvuni_to_utf8_flags</code> from a future release of Perl. Do not use it for new code; remove it from existing code.</p>

<p>Instead you almost certainly want to use <a href="perlapi.html#uvchr_to_utf8">&quot;uvchr_to_utf8&quot; in perlapi</a> or <a href="perlapi.html#uvchr_to_utf8_flags">&quot;uvchr_to_utf8_flags&quot; in perlapi</a>.</p>

<p>This function is a deprecated synonym for <a href="perlintern.html#uvoffuni_to_utf8_flags">&quot;uvoffuni_to_utf8_flags&quot;</a>, which itself, while not deprecated, should be used only in isolated circumstances. These functions were useful for code that wanted to handle both EBCDIC and ASCII platforms with Unicode properties, but starting in Perl v5.20, the distinctions between the platforms have mostly been made invisible to most code, so this function is quite unlikely to be what you want.</p>

<ul>

<pre><code class="plaintext">U8*  uvuni_to_utf8_flags(U8 *d, UV uv, UV flags)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="valid_utf8_to_uvchr"><a class="permalink" href="perlintern.html#valid_utf8_to_uvchr">#</a><code>valid_utf8_to_uvchr</code> </dt>
<dd>

<p>Like <code><a href="perlapi.html#utf8_to_uvchr_buf">&quot;utf8_to_uvchr_buf&quot; in perlapi</a></code>, but should only be called when it is known that the next character in the input UTF-8 string <code>s</code> is well-formed (<i>e.g.</i>, it passes <code><a href="perlapi.html#isUTF8_CHAR">&quot;isUTF8_CHAR&quot; in perlapi</a></code>. Surrogates, non-character code points, and non-Unicode code points are allowed.</p>

<ul>

<pre><code class="plaintext">UV  valid_utf8_to_uvchr(const U8 *s, STRLEN *retlen)</code></pre>

</ul>

</dd>
</dl>

<dl>

<dt id="variant_under_utf8_count"><a class="permalink" href="perlintern.html#variant_under_utf8_count">#</a><code>variant_under_utf8_count</code> </dt>
<dd>

<p>This function looks at the sequence of bytes between <code>s</code> and <code>e</code>, which are assumed to be encoded in ASCII/Latin1, and returns how many of them would change should the string be translated into UTF-8. Due to the nature of UTF-8, each of these would occupy two bytes instead of the single one in the input string. Thus, this function returns the precise number of bytes the string would expand by when translated to UTF-8.</p>

<p>Unlike most of the other functions that have <code>utf8</code> in their name, the input to this function is NOT a UTF-8-encoded string. The function name is slightly <i>odd</i> to emphasize this.</p>

<p>This function is internal to Perl because khw thinks that any XS code that would want this is probably operating too close to the internals. Presenting a valid use case could change that.</p>

<p>See also <code><a href="perlapi.html#is_utf8_invariant_string">&quot;is_utf8_invariant_string&quot; in perlapi</a></code> and <code><a href="perlapi.html#is_utf8_invariant_string_loc">&quot;is_utf8_invariant_string_loc&quot; in perlapi</a></code>,</p>

<ul>

<pre><code class="plaintext">Size_t  variant_under_utf8_count(const U8* const s,
                                 const U8* const e)</code></pre>

</ul>

</dd>
</dl>

<h1 id="Utility-Functions"><a class="permalink" href="perlintern.html#Utility-Functions">#</a><a id="Utility"></a>Utility Functions</h1>

<p>There are only public API items currently in Utility Functions</p>

<h1 id="Versioning"><a class="permalink" href="perlintern.html#Versioning">#</a>Versioning</h1>

<p>There are only public API items currently in Versioning</p>

<h1 id="Warning-and-Dieing"><a class="permalink" href="perlintern.html#Warning-and-Dieing">#</a><a id="Warning"></a>Warning and Dieing</h1>

<dl>

<dt id="PL_dowarn"><a class="permalink" href="perlintern.html#PL_dowarn">#</a><code>PL_dowarn</code> </dt>
<dd>

<p>The C variable that roughly corresponds to Perl&#39;s <code>$^W</code> warning variable. However, <code>$^W</code> is treated as a boolean, whereas <code>PL_dowarn</code> is a collection of flag bits.</p>

<p>On threaded perls, each thread has an independent copy of this variable; each initialized at creation time with the current value of the creating thread&#39;s copy.</p>

<ul>

<pre><code class="plaintext">U8  PL_dowarn</code></pre>

</ul>

</dd>
</dl>

<h1 id="XS"><a class="permalink" href="perlintern.html#XS">#</a>XS</h1>

<p>There are only public API items currently in XS</p>

<h1 id="Undocumented-elements"><a class="permalink" href="perlintern.html#Undocumented-elements">#</a><a id="Undocumented"></a>Undocumented elements</h1>

<p>The following functions are currently undocumented. If you use one of them, you may wish to consider creating and submitting documentation for it.</p>

<p>                                                                                                                                                       </p>

<ul>

<pre><code class="plaintext">abort_execution
add_cp_to_invlist
_add_range_to_invlist
alloc_LOGOP
allocmy
amagic_cmp
amagic_cmp_desc
amagic_cmp_locale
amagic_cmp_locale_desc
amagic_is_enabled
amagic_i_ncmp
amagic_i_ncmp_desc
amagic_ncmp
amagic_ncmp_desc
append_utf8_from_native_byte
apply
ASCII_TO_NEED
av_arylen_p
av_extend_guts
av_iter_p
av_nonelem
av_reify
bind_match
boot_core_mro
boot_core_PerlIO
boot_core_UNIVERSAL
_byte_dump_string
cando
cast_i32
cast_iv
cast_ulong
cast_uv
check_utf8_print
ck_anoncode
ck_backtick
ck_bitop
ck_cmp
ck_concat
ck_defined
ck_delete
ck_each
ck_entersub_args_core
ck_eof
ck_eval
ck_exec
ck_exists
ck_ftst
ck_fun
ck_glob
ck_grep
ck_index
ck_isa
ck_join
ck_length
ck_lfun
ck_listiob
ck_match
ck_method
ck_null
ck_open
ck_prototype
ck_readline
ck_refassign
ck_repeat
ck_require
ck_return
ck_rfun
ck_rvconst
ck_sassign
ck_select
ck_shift
ck_smartmatch
ck_sort
ck_spair
ck_split
ck_stringify
ck_subr
ck_substr
ck_svconst
ck_tell
ck_trunc
ck_trycatch
ckwarn
ckwarn_d
closest_cop
cmpchain_extend
cmpchain_finish
cmpchain_start
cmp_desc
cmp_locale_desc
cntrl_to_mnemonic
coresub_op
create_eval_scope
croak_caller
croak_memory_wrap
croak_no_mem
croak_popstack
csighandler
csighandler1
csighandler3
current_re_engine
custom_op_get_field
cv_ckproto_len_flags
cv_clone_into
cv_const_sv_or_av
cvgv_from_hek
cvgv_set
cvstash_set
cv_undef_flags
cx_dump
cx_dup
cxinc
cx_popblock
cx_popeval
cx_popformat
cx_popgiven
cx_poploop
cx_popsub
cx_popsub_args
cx_popsub_common
cx_popwhen
cx_pushblock
cx_pusheval
cx_pushformat
cx_pushgiven
cx_pushloop_for
cx_pushloop_plain
cx_pushsub
cx_pushtry
cx_pushwhen
cx_topblock
deb_stack_all
defelem_target
delete_eval_scope
despatch_signals
die_unwind
do_aexec
do_aexec5
do_eof
does_utf8_overflow
do_exec
do_exec3
dofile
do_gvgv_dump
do_gv_dump
do_hv_dump
doing_taint
do_ipcctl
do_ipcget
do_magic_dump
do_msgrcv
do_msgsnd
do_ncmp
do_open6
do_open_raw
do_op_dump
do_pmop_dump
do_print
do_readline
do_seek
do_semop
do_shmio
do_sv_dump
do_sysseek
do_tell
do_trans
do_uniprop_match
do_vecget
do_vecset
do_vop
drand48_init_r
drand48_r
dtrace_probe_call
dtrace_probe_load
dtrace_probe_op
dtrace_probe_phase
dump_all_perl
dump_indent
dump_packsubs_perl
dump_sub_perl
dump_sv_child
dump_vindent
dup_warnings
emulate_cop_io
find_first_differing_byte_pos
find_lexical_cv
find_runcv_where
find_script
foldEQ_latin1
foldEQ_latin1_s2_folded
foldEQ_utf8_flags
_force_out_malformed_utf8_message
form_alien_digit_msg
form_cp_too_large_msg
free_tied_hv_pool
free_tmps
get_and_check_backslash_N_name
get_db_sub
get_debug_opts
get_deprecated_property_msg
getenv_len
get_hash_seed
get_invlist_iter_addr
get_invlist_offset_addr
get_invlist_previous_index_addr
get_no_modify
get_opargs
get_prop_definition
get_prop_values
get_regclass_nonbitmap_data
get_regex_charset_name
get_re_arg
get_re_gclass_nonbitmap_data
gimme_V
grok_bin_oct_hex
grok_bslash_c
grok_bslash_o
grok_bslash_x
gv_check
gv_fetchmeth_internal
gv_override
gv_setref
gv_stashpvn_internal
hfree_next_entry
hv_backreferences_p
hv_common
hv_common_key_len
hv_kill_backrefs
hv_placeholders_p
hv_pushkv
hv_undef_flags
init_argv_symbols
init_constants
init_dbargs
init_debugger
init_i18nl10n
init_i18nl14n
init_named_cv
init_uniprops
_inverse_folds
invert
invlist_array
invlist_clear
invlist_clone
invlist_contents
_invlistEQ
invlist_extend
invlist_highest
invlist_is_iterating
invlist_iterfinish
invlist_iterinit
invlist_iternext
invlist_lowest
invlist_max
invlist_previous_index
invlist_set_len
invlist_set_previous_index
invlist_trim
_invlist_array_init
_invlist_contains_cp
_invlist_dump
_invlist_intersection
_invlist_intersection_maybe_complement_2nd
_invlist_invert
_invlist_len
_invlist_search
_invlist_subtract
_invlist_union
_invlist_union_maybe_complement_2nd
invmap_dump
io_close
isFF_OVERLONG
is_grapheme
is_invlist
is_utf8_char_helper
is_utf8_common
is_utf8_overlong_given_start_byte_ok
_is_cur_LC_category_utf8
_is_in_locale_category
_is_uni_FOO
_is_uni_perl_idcont
_is_uni_perl_idstart
_is_utf8_FOO
_is_utf8_perl_idcont
_is_utf8_perl_idstart
jmaybe
keyword
keyword_plugin_standard
list
load_charnames
localize
lossless_NV_to_IV
magic_cleararylen_p
magic_clearenv
magic_clearisa
magic_clearpack
magic_clearsig
magic_clear_all_env
magic_copycallchecker
magic_existspack</code></pre>

</ul>

<h1 id="AUTHORS"><a class="permalink" href="perlintern.html#AUTHORS">#</a>AUTHORS</h1>

<p>The autodocumentation system was originally added to the Perl core by Benjamin Stuhl. Documentation is by whoever was kind enough to document their functions.</p>

<h1 id="SEE-ALSO"><a class="permalink" href="perlintern.html#SEE-ALSO">#</a><a id="SEE"></a>SEE ALSO</h1>

<p><i>config.h</i>, <a href="perlapi.html">perlapi</a>, <a href="perlapio.html">perlapio</a>, <a href="perlcall.html">perlcall</a>, <a href="perlclib.html">perlclib</a>, <a href="perlfilter.html">perlfilter</a>, <a href="perlguts.html">perlguts</a>, <a href="perlinterp.html">perlinterp</a>, <a href="perliol.html">perliol</a>, <a href="perlmroapi.html">perlmroapi</a>, <a href="perlreguts.html">perlreguts</a>, <a href="perlxs.html">perlxs</a></p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
